/* 
 * 5acxy Home V2 - Ultra Clean Corporate
 * Isolated style for homev2.html
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Core Palette - Trusted Navy & Vibrant Blue */
    --c-primary: #0f172a;
    /* Slate 900 - Headings */
    --c-secondary: #334155;
    /* Slate 700 - Body */
    --c-accent: #2563eb;
    /* Blue 600 - Action */
    --c-accent-hover: #1d4ed8;
    /* Blue 700 */
    --c-bg: #ffffff;
    --c-bg-alt: #f8fafc;
    /* Slate 50 */
    --c-border: #e2e8f0;
    /* Slate 200 */

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--c-secondary);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Subtle grid pattern for the whole page */
    background-image: linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--c-primary);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------------------------------
   Navigation (Sticky, Glass)
------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-secondary);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--c-accent);
}

.nav-cta {
    background: var(--c-primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-cta:hover {
    background: var(--c-secondary);
}

/* -------------------------------------------
   Hero Section
------------------------------------------- */
.hero {
    padding-top: calc(var(--header-height) + 120px);
    padding-bottom: 140px;
    text-align: center;
    position: relative;
    /* Richer Gradient Mesh */
    background:
        radial-gradient(circle at 15% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    overflow: hidden;
}

/* Add a pseudo-element for extra depth if needed, or keep simple */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-badges {
    display: inline-flex;
    gap: 24px;
    margin-bottom: 32px;
    background: var(--c-bg-alt);
    padding: 8px 24px;
    border-radius: 99px;
    border: 1px solid var(--c-border);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-primary);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero h1 span.thin {
    font-weight: 400;
    color: var(--c-secondary);
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--c-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--c-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--c-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    border: 1px solid var(--c-border);
    color: var(--c-primary);
}

.btn-outline:hover {
    border-color: var(--c-primary);
    background: var(--c-bg-alt);
}

/* -------------------------------------------
   Services (Bento Grid)
------------------------------------------- */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--c-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bento-card {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.bento-card:hover {
    border-color: var(--c-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--c-bg-alt);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--c-accent);
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--c-secondary);
}

.bento-card-lg {
    grid-column: span 2;
}

/* -------------------------------------------
   Projects (Masonry / Grid)
------------------------------------------- */
.bg-alt {
    background: var(--c-bg-alt);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 300px;
    background: var(--c-bg-alt);
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.project-info {
    padding: 24px;
}

.project-info h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--c-accent);
    font-weight: 600;
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-primary);
    box-shadow: var(--shadow-sm);
}

/* -------------------------------------------
   Footer
------------------------------------------- */
footer {
    background: var(--c-primary);
    color: white;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h5 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-link-p {
    font-size: 0.85rem;
}

.footer-link-p a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link-p a:hover {
    color: #94a3b8;
}

/* -------------------------------------------
   Internal Pages (Banner)
------------------------------------------- */
.page-header {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--c-border);
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--c-secondary);
}

.breadcrumbs a {
    color: var(--c-secondary);
    opacity: 0.7;
}

.breadcrumbs a:hover {
    color: var(--c-accent);
    opacity: 1;
}

.breadcrumbs span {
    opacity: 0.4;
}

/* -------------------------------------------
   Contact Section
------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    height: 100%;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--c-bg-alt);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-qr {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-box {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    padding: 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* -------------------------------------------
   Blog / List Styles
------------------------------------------- */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 99px;
    background: white;
    border: 1px solid var(--c-border);
    color: var(--c-secondary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--c-accent);
    color: white;
    border-color: var(--c-accent);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-accent);
}

.blog-thumb {
    height: 100%;
    width: 100%;
    background: var(--c-bg-alt);
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--c-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 80px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--c-border);
    color: var(--c-secondary);
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background: var(--c-primary);
    color: white;
    border-color: var(--c-primary);
}

/* -------------------------------------------
   Mobile Navigation & Responsive
------------------------------------------- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--c-primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Nav Menu Wrapper Default (PC) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Responsive */
@media (max-width: 900px) {

    .bento-grid,
    .project-grid,
    .footer-grid,
    .contact-wrapper,
    .blog-card {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    /* Mobile Nav */
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        border-bottom: 1px solid var(--c-border);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 24px;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 8px 0;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }
    
    .blog-card {
        gap: 0;
    }
    
    .blog-thumb {
        height: 200px;
    }
    
    .blog-content {
        padding: 24px;
    }

    /* Footer Bottom Mobile */
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}