/* Global Styles */
:root {
    --primary-color: #003366;
    --secondary-color: #FF6600;
    --accent-color: #0066CC;
    --light-color: #F5F5F5;
    --dark-color: #333333;
    --text-color: #444444;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

nav ul.nav-links {
    display: flex;
}

nav ul.nav-links li {
    margin-left: 30px;
}

nav ul.nav-links a {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
}

nav ul.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

nav ul.nav-links a:hover::after,
nav ul.nav-links a.active::after {
    width: 100%;
}

nav ul.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(167, 140, 66, 0.7), rgba(0, 51, 102, 0.7)), 
                url('images/caroil.png') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Slider Section */
.slider-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.slider-container {
    overflow: hidden;
    position: relative;
    margin: 40px auto;
    max-width: 1200px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    animation: slide 20s infinite linear;
}

.slider img {
    min-width: 100%;
    height: 400px;
    object-fit: cover;
    padding: 0 10px;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* About Summary Section */
.about-summary {
    padding: 80px 0;
}

.about-summary .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    height: 100%;
    object-fit: cover;
}

/* Services Preview Section */
.services-preview {
    padding: 80px 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
}

.service-card p {
    padding: 0 20px 20px;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Page Hero */
.page-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), 
                url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.page-hero .container {
    width: 100%;
}

.page-hero h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* About Page Styles */
.company-history {
    padding: 80px 0;
}

.company-history .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.history-content {
    flex: 1;
}

.history-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.history-image img {
    height: 100%;
    object-fit: cover;
}

.mission-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.mission-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-10px);
}

.mission-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.mission-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.global-reach {
    padding: 80px 0;
}

.reach-map {
    margin: 40px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.reach-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reach-item {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
}

.reach-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.leadership {
    padding: 80px 0;
    background-color: var(--light-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--light-color);
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-member p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.team-member p:last-child {
    font-size: 0.8rem;
    color: #777;
}

.about-cta {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.about-cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

/* Services Page Styles */
.products-section {
    padding: 80px 0;
}

.product-card {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
    align-items: center;
}

.product-card:nth-child(even) {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-image img {
    height: 400px;
    object-fit: cover;
}

.product-content {
    flex: 1;
}

.product-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.product-content h4 {
    margin: 20px 0 15px;
    color: var(--secondary-color);
}

.product-content ul {
    margin-bottom: 20px;
}

.product-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.product-content ul li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.services-cta {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.services-cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-summary .container,
    .company-history .container,
    .product-card,
    .product-card:nth-child(even) {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .product-image,
    .product-content {
        width: 100%;
    }

    .product-image img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul.nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    nav ul.nav-links.active {
        left: 0;
    }

    nav ul.nav-links li {
        margin: 15px 0;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .history-content,
    .product-content {
        margin-bottom: 30px;
    }

    .slider img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stats .container {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid,
    .reach-stats {
        grid-template-columns: 1fr;
    }

    .product-card {
        margin-bottom: 50px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}