/* Bicol corporate website styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: #f7f9fc;
    background-color: #0f172a;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* Variables */
:root {
    --primary: #014a89;
    --secondary: #0082d4;
    --accent: #00b49d;
    --text-light: #e5e9f0;
    --bg-dark: #0f172a;
    --bg-darker: #0b1a33;
}

/* Header / Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    color: #f7f9fc;
}
.logo-wrapper {
    display: flex;
    align-items: center;
}
.logo {
    height: 50px;
    width: auto;
}

.nav-toggle {
    display: none;
}
.nav-toggle-label {
    display: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.nav-menu {
    display: flex;
    gap: 1.5rem;
}
.nav-menu li { list-style: none; }
.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}
.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(1, 74, 137, 0.6), rgba(1, 74, 137, 0.8));
    z-index: -1;
}
.hero .hero-content {
    max-width: 800px;
    padding: 2rem;
}
.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #d5dee8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #0f172a;
}
.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}
.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}
.btn-outline:hover {
    background: var(--accent);
    color: #0f172a;
}

/* Section base */
section {
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
h2.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}
p.section-lead {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #b0c4d4;
    font-size: 1rem;
    text-align: center;
}

/* About preview on home */
.about-preview {
    background: var(--bg-darker);
    text-align: center;
}
.about-preview p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: #d5dee8;
}

/* Services Preview Cards */
.services-preview {
    background: var(--bg-dark);
}
.services-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.service-card {
    flex: 1 1 250px;
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
}
.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}
.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.service-card p {
    color: #d5dee8;
    margin-bottom: 1rem;
}

/* Clients slider (home) */
.clients-section {
    background: var(--bg-darker);
    text-align: center;
}
.clients-section h2.section-title {
    margin-bottom: 0.5rem;
}
.clients-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.clients-slider::-webkit-scrollbar { display: none; }
.client-item {
    flex: 0 0 auto;
    width: 160px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    transition: background 0.3s ease;
}
.client-item img {
    width: 80%;
    height: auto;
}
.client-item:hover {
    background: rgba(255,255,255,0.2);
}

/* Contact preview section on home */
.contact-preview {
    background: var(--bg-dark);
    text-align: center;
}
.contact-preview .contact-content {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #d5dee8;
}

/* Generic page sections */
.section {
    background: var(--bg-dark);
}
.section:nth-child(even) {
    background: var(--bg-darker);
}

/* Service detail page */
.service-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.service-detail .tech-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
}
.service-detail .tech-logos img {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 6px;
    width: 100%;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.service-detail .tech-logos img:hover {
    transform: scale(1.05);
}
.service-detail ul {
    padding-left: 1rem;
    margin-bottom: 1rem;
}
.service-detail li {
    margin-bottom: 0.5rem;
    color: #d5dee8;
    list-style: disc;
}

/* About page */
.about-section {
    background: var(--bg-darker);
    color: #e5e9f0;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
}
.about-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.about-section p {
    margin-bottom: 1rem;
    color: #d5dee8;
}
.about-section ul {
    padding-left: 1rem;
    margin-bottom: 1rem;
}
.about-section li {
    margin-bottom: 0.5rem;
}

/* Contact page */
.contact-section {
    background: var(--bg-darker);
    color: #f7f9fc;
}
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}
.contact-info {
    flex: 1 1 300px;
}
.contact-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.contact-info p {
    margin-bottom: 1rem;
    color: #b0c4d4;
}
.contact-details li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    color: #d5dee8;
}
.contact-details li i {
    margin-right: 0.5rem;
    color: var(--accent);
}
.contact-form-wrapper {
    flex: 1 1 300px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: #f7f9fc;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #b0c4d4;
}
.contact-form textarea { resize: vertical; }
.contact-form button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent);
    color: #0f172a;
    transition: background 0.3s ease;
}
.contact-form button:hover {
    background: var(--secondary);
}

/* Footer */
.site-footer {
    background: var(--bg-darker);
    padding: 1rem;
    text-align: center;
    color: #6c819a;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
    }
    .nav-menu li { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-menu a {
        display: block;
        padding: 1rem;
        color: #f7f9fc;
    }
    .nav-toggle:checked + .nav-toggle-label span {
        background: transparent;
    }
    .nav-toggle:checked + .nav-toggle-label span::before {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle:checked + .nav-toggle-label span::after {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-toggle:checked ~ .nav-menu {
        max-height: 200px;
    }
    .nav-toggle-label { display: block; }
    .nav-menu { margin-top: 0.5rem; }
    .service-card { flex: 1 1 100%; }
    .contact-container { flex-direction: column; }
}

/* Hero backgrounds for specific pages */
.hero-home::before {
    background-image: url('images/hero_bg.jpg');
}
.hero-ecommerce::before {
    background-image: url('https://source.unsplash.com/1600x900/?ecommerce,shopping,online');
}
.hero-marketing::before {
    background-image: url('https://source.unsplash.com/1600x900/?marketing,digital,marketing');
}
.hero-crm::before {
    background-image: url('https://source.unsplash.com/1600x900/?customer,service,crm');
}
.hero-rpa::before {
    background-image: url('https://source.unsplash.com/1600x900/?robot,automation');
}
.hero-lowcode::before {
    background-image: url('https://source.unsplash.com/1600x900/?coding,app,software');
}
.hero-ia::before {
    background-image: url('https://source.unsplash.com/1600x900/?artificial,intelligence,ai');
}
.hero-about::before {
    background-image: url('https://source.unsplash.com/1600x900/?team,business,office');
}
.hero-contact::before {
    background-image: url('https://source.unsplash.com/1600x900/?contact,communication,office');
}