/* General Styles */
body {
    margin: 0;
    font-family: 'Noto Sans JP', 'Roboto', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

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

/* Header */
header {
    background: #ffffff;
    color: #333;
    padding: 20px 0;
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #007bff;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #007bff;
}

/* Mobile Navigation (Hamburger Menu) */
.menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    font-size: 24px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}


/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 86, 179, 0.7)), url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: #ffffff;
    padding: 120px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero .btn {
    display: inline-block;
    padding: 15px 35px;
    background: #ffffff;
    color: #007bff;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero .btn:hover {
    background: #007bff;
    color: #ffffff;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff;
    margin: 20px auto 0;
}

.section-bg-light {
    background-color: #ffffff;
}

.section-bg-dark {
    background-color: #f4f7f6; /* Slightly off-white for contrast */
}


/* About Us Section */
#about .about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

#about .about-text {
    flex: 1;
}

#about .about-image {
    flex: 1;
    max-width: 450px; /* Control image size */
}

#about .about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/* Services Section */
#services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for better fit */
    gap: 30px;
    text-align: left;
}

.service-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}

.service-item i { /* For icons, if added later */
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #007bff;
}

/* Portfolio Section */
#portfolio .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

#portfolio .portfolio-item {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden; /* To contain image */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#portfolio .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#portfolio .portfolio-item img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10; /* Maintain aspect ratio */
    object-fit: cover;
}

#portfolio .portfolio-item-content {
    padding: 20px;
}

#portfolio .portfolio-item-content h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}


/* Call to Action Section */
.cta {
    background: #007bff;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #ffffff; /* Override section h2 color */
}
.cta h2::after {
    background: #ffffff; /* Override section h2::after color */
}

.cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta .btn {
    display: inline-block;
    padding: 15px 35px;
    background: #ffffff;
    color: #007bff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta .btn:hover {
    background: #e6e6e6;
    color: #0056b3;
}


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

footer p {
    margin: 0;
    font-size: 0.9em;
}

footer .social-links a {
    color: #f2f2f2;
    margin: 0 10px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #007bff;
}


/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        /* flex-direction: column; */ /* Keep logo and toggle on same line */
        align-items: center; /* Vertically align items */
        position: relative; /* For absolute positioning of nav */
    }

    header nav {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 10px 0;
        border-top: 1px solid #e7e7e7;
    }

    header nav.active { /* Class to show nav */
        display: block;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
    }

    header nav ul li {
        margin: 0;
        text-align: center; /* Center nav items */
    }
    header nav ul li a {
        display: block; /* Make links take full width */
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    header nav ul li:last-child a {
        border-bottom: none;
    }
    header nav ul li a:hover {
        background-color: #f8f9fa;
        color: #0056b3;
    }


    .menu-toggle {
        display: block; /* Show hamburger */
        /* position: absolute; */ /* Removed to keep in flow */
        /* top: 25px; */
        /* right: 20px; */
    }


    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }

    section h2 {
        font-size: 2em;
    }

    #about .about-content {
        flex-direction: column;
    }
    #about .about-image {
        margin-top: 30px;
        max-width: 100%; /* Allow image to be full width on mobile */
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 15px;
    }
    .hero h1 {
        font-size: 1.8em;
    }
    .hero .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    section {
        padding: 60px 0;
    }
    section h2 {
        font-size: 1.8em;
        margin-bottom: 40px;
    }
    .service-item {
        padding: 20px;
    }
    header .logo {
        font-size: 1.5em;
    }
}
