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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.top-bar {
    background-color: #4a5578;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.contact-info {
    text-align: right;
}

.contact-info span {
    margin-right: 20px;
    font-weight: bold;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    height: 125px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4a5578;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #4a5578;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0)),
                url('images/homepage-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-text h3 {
    font-size: 4rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Content Sections */
.our-story,
.our-service,
.intelligent-platform,
.partners {
    padding: 80px 0;
}

.our-story {
    background-color: #f8f9fa;
    text-align: center;
}

.our-story h2,
.our-service h2,
.intelligent-platform h2,
.partners h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 400;
}

.our-story p {
    font-size: 1.1rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Our Service Section */
.our-service {
    text-align: center;
}

.our-service p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

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

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.service-overlay h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card a {
    text-decoration: none;
    display: block;
}

/* Intelligent Platform Section */
.intelligent-platform {
    background-color: #f8f9fa;
    text-align: center;
}

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

.platform-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.platform-item:hover {
    transform: translateY(-5px);
}

.platform-item h3 {
    font-size: 1.5rem;
    color: #4a5578;
    margin-bottom: 20px;
    font-weight: 600;
}

.platform-item img {
    width: 80px;
    height: 80px;
    margin: 20px 0;
    object-fit: contain;
}

.platform-item h4 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* Partners Section */
.partners {
    text-align: center;
}

.partners-logos img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 30px;
    font-size: 14px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links span {
    color: #666;
    margin: 0 5px;
}

.footer-info {
    font-size: 14px;
    line-height: 1.6;
}

.footer-info p {
    margin-bottom: 8px;
    color: #ccc;
}

.footer-info a {
    color: #f9f9fa;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #4a5578;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        display: block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
        background-color: #f9f9f9;
        border-radius: 4px;
        margin-top: 5px;
    }

    .dropdown-menu.active {
        display: block;
    }

    .dropdown > .nav-link {
        position: relative;
        padding-right: 20px;
    }

    .dropdown > .nav-link::after {
        content: '▼';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .dropdown.active > .nav-link::after {
        content: '▲';
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-text h3 {
        font-size: 2.8rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .our-story,
    .our-service,
    .intelligent-platform,
    .partners {
        padding: 60px 0;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info span {
        display: block;
        margin-bottom: 5px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text h3 {
        font-size: 2.2rem;
    }

    .our-story h2,
    .our-service h2,
    .intelligent-platform h2,
    .partners h2 {
        font-size: 2rem;
    }
}
