/* ======================
   BASE STYLES
   ====================== */
body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
}

/* ======================
   HEADER & NAVIGATION
   ====================== */
header {
    background-color: #031B88;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    height: 100%;
}

.logo {
    color: #031B88;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: white;
    border-radius: 25px;
    margin-left: 10px;
}

.logo-img {
    height: 35px;
    width: auto;
}

nav {
    display: flex;
    justify-content: flex-end;
    padding-right: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .logo-img {
        display:none;
    }
    .logo {
        position: static;
        transform: none;
        margin-right: auto;
        padding: 0;
        background-color: transparent;
        color: white;
        font-size: 1rem;
        margin-left: 20px;
    }
    nav ul {
        gap: 20px;
    }
    .menu-toggle {
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
    }
}

nav a {
    color: #FFCC00;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 0;
}

nav a:hover {
    color: #ffdd33;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}


.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
    background: 
    linear-gradient(to bottom, rgba(3, 27, 136, 0.9), rgba(0, 85, 255, 0.9)),
    url('assets/gedung perusahaan.jpg') center/cover no-repeat;
    background-blend-mode:normal;
    color: rgb(255, 255, 255);
    padding: 40px;
    min-height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero h1 {
    align-self: flex-start;
    margin: 120px 30px 20px;
    text-align: left;
    color: #FFCC00;
    font-size: 2.5rem;
}

.hero-description {
    margin: 0 30px 40px;
    max-width: 600px;
}

.hero-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.desktop-description {
    display: block;
}

.mobile-description {
    display: none;
}

@media (max-width: 768px) {
    .hero h1 {
        margin: 100px 20px 15px;
        font-size: 1.4rem;
    }
    
    .desktop-description {
        display: none;
    }
}

/* Navbar scroll behavior */
header.scrolled {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

header.visible {
    transform: translateY(0);
}

.hero h2 {
    align-self: flex-start;
    margin: 0 30px 20px;
    text-align: left;
    color: #FFCC00;
    font-size: 1.8rem;
}

.cta {
    background-color: #FFCC00;
    border: none;
    border-radius: 20px;
    padding: 10px 30px;
    cursor: pointer;
    margin: 0;
    font-weight: bold;
    align-self: flex-end;
    margin-bottom: 40px;
    margin-right: 100px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ======================
   CONTENT SECTIONS
   ====================== */
#about, #products, #services {
    padding: 50px 20px;
}

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

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 40px;
}

.about-text {
    flex: 1;
    text-align: left;
    padding-right: 40px;
}

.about-text h2 {
    color: #031B88;
    margin-bottom: 20px;
}

.about-text p {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 600px;
}

.about-image {
    flex: 1;
    min-width: 400px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .about-container {
        gap: 40px;
        padding: 0 30px;
    }
    .about-image {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        padding: 0 20px;
    }
    .about-text {
        padding-right: 0;
        order: 2;
        margin-top: 30px;
    }
    .about-image {
        min-width: 100%;
    }
}

/* Products Section */
#products {
    background: linear-gradient(to right, #031B88, #0055FF);
    color: white;
    text-align: center;
    position: relative;
    padding-bottom: 80px;
}

.product-scroll {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background-color: white;
    border: none;
    border-radius: 50%;
    color: #FFCC00;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev {
    margin-left: 20px;
}

.carousel-btn.next {
    margin-right: 20px;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.product-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    max-width: 300px;
}

.product-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.product-scroll > * {
    flex-shrink: 0;
    pointer-events: none;
    touch-action: pan-y;
}

.product-card img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.product-card a,
.product-card button {
    pointer-events: auto;
}

.product-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background: white;
    border-radius: 10px;
    padding: 20px;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.price {
    font-weight: bold;
    color: #0055FF;
    font-size: 1.1rem;
}

/* Services Section */
#services {
    background-color: #f8f9fa;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: #0055FF;
    margin-bottom: 15px;
}

.service-card h3 {
    margin: 10px 0;
    color: #031B88;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ======================
   FOOTER
   ====================== */
footer {
    background-color: #031B88;
    color: white;
    padding: 40px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #FFCC00;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FFCC00;
}

.newsletter-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
}

.newsletter-form button {
    background-color: #FFCC00;
    color: #031B88;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #e6b800;
}

.social-media {
    margin-top: 20px;
}

.social-media a {
    color: white;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #FFCC00;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFCC00;
    color: #031B88;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 99;
}

.back-to-top:hover {
    background-color: #e6b800;
}

/* ======================
   RESPONSIVE STYLES
   ====================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 20px;
        background-color: #031B88;
        flex-direction: column;
        padding: 15px 25px;
        gap: 15px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        width: auto;
        min-width: 200px;
    }
    
    nav ul.active {
        display: flex;
    }

    .about-container {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        width: 100%;
    }
    
    .about-text {
        order: 2;
        margin-top: 30px;
    }

    .product-card {
        flex: 0 0 calc(50% - 20px);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #about, #products, #services {
        padding: 40px 15px;
    }

    .carousel-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 80%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* New styles for footer icons */
.footer-section i {
    color: #FFCC00;
    margin-right: 8px;
}
