/* style.css */

/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #3498db;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px;
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-dark {
    background-color: #2c3e50;
}

.text-white {
    color: #ffffff;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 10px;
}

.primary-btn {
    background-color: #3498db;
    color: #ffffff;
}

.primary-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: transparent;
    color: #3498db;
    border-color: #3498db;
}

.secondary-btn:hover {
    background-color: #3498db;
    color: #ffffff;
    transform: translateY(-3px);
}

.large-btn {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    background: url('https://cdn.pixabay.com/photo/2016/11/23/14/45/coding-1853305_1280.jpg') no-repeat center center/cover; /* Contoh gambar latar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Lebih gelap agar teks lebih jelas */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about-section {
    background-color: #ffffff;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1em;
    text-align: center;
    line-height: 1.8;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section {
    padding-top: 60px; /* Adjust padding if needed */
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card p {
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-card ul li {
    margin-bottom: 8px;
    color: #555;
}

.service-card ul li::before {
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #27ae60;
    margin-right: 10px;
}

.service-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image to fit */
    border-radius: 8px;
    margin-top: auto; /* Push image to the bottom */
}


/* Why Us Section */
.why-us-section {
    background-color: #ecf0f1;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-us-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.why-us-item:hover {
    transform: translateY(-5px);
}

.why-us-icon {
    font-size: 2.5em;
    color: #e67e22; /* A warmer accent color */
    margin-bottom: 15px;
}

.why-us-item h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.why-us-item p {
    color: #555;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.portfolio-item h3 {
    font-size: 1.6em;
    color: #2c3e50;
    padding: 15px 20px 5px;
}

.portfolio-item p {
    color: #555;
    padding: 0 20px 20px;
}

/* Testimonials Section (Simple for now, can be enhanced with JS carousel) */
.testimonial-carousel {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    max-width: 450px;
    text-align: center;
    position: relative;
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: -70px auto 20px; /* Pulls image up */
    border: 5px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-style: italic;
    color: #444;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: #333;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
    text-align: left;
}

.contact-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding doesn't add to total width */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info p i {
    color: #3498db;
    font-size: 1.2em;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #2980b9;
}

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* Align social icons to the left */
}

.social-icons a {
    font-size: 2em;
    color: #3498db;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #2980b9;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 30px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3em;
    }

    .hero-subtitle {
        font-size: 1.3em;
    }

    .section-title {
        font-size: 2.2em;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 80%; /* Make buttons wider on small screens */
        max-width: 300px;
        margin: 0 auto 15px auto;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .service-cards, .why-us-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .service-card, .why-us-item, .portfolio-item, .testimonial-item, .contact-form, .contact-info {
        padding: 25px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .contact-info p, .social-icons {
        justify-content: center; /* Center contact info on small screens */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1em;
    }
}