/* DESIGN VARIABLES - INSPIRED BY HEXALABES.COM */
:root {
    --primary: #022179;
    --primary-hover: #011650;
    --accent: #022179;
    --warning: #FDD428;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --card: #ffffff;
    --card-hover: #fcfcfc;
    --text: #333333;
    --text-darker: #1a1a1a;
    --muted: #7f7f7f;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --glow: rgba(2, 33, 121, 0.08);
    --font-family: 'Poppins', sans-serif;
}

/* BASE STYLES */
html {
    scroll-behavior: smooth;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-alt);
    color: var(--text);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-darker);
}

/* TOP BAR STYLE */
.top-bar {
    background-color: var(--primary);
    color: #ffffff;
    padding: 10px 8%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.top-bar a:hover {
    opacity: 0.85;
}

/* NAVBAR STYLE */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.main-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 4%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 40px; /* Exact height from hexalabes.com */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #555555;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary);
}

/* Underline slide effect */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li.active a::after {
    width: 100%;
}

.nav-cta {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* MAIN CONTENT */
.page-container {
    flex: 1 0 auto;
}

/* PORTFOLIO SECTION */
.portfolio-section {
    padding: 60px 4% 80px 4%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .tagline {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 40px;
    margin: 0 0 15px 0;
    color: var(--primary);
}

.section-header p {
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

/* FILTER BUTTONS */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--glow);
}

/* PORTFOLIO GRID */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

/* PROJECT CARD */
.portfolio-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px var(--glow);
}

.portfolio-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-content .category {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portfolio-content h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: var(--text-darker);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-content h3 {
    color: var(--primary);
}

.portfolio-content p,
.portfolio-content .short-description {
    color: #555555;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 14.5px;
    flex-grow: 1;
}
.portfolio-content .short-description p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 10px 0;
}
.portfolio-content .short-description p:last-child {
    margin-bottom: 0;
}

/* TECH TAGS */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-stack span {
    background: rgba(2, 33, 121, 0.05);
    border: 1px solid rgba(2, 33, 121, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}



.portfolio-card:hover .tech-stack span {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* BUTTONS */
.btn-primary-portfolio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary-portfolio:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* CASE STUDY STYLING */
.case-study-hero {
    padding: 80px 4% 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.case-study-hero .tag {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
}

.case-study-hero h1 {
    font-size: 44px;
    margin: 15px 0 20px 0;
    color: var(--primary);
    line-height: 1.2;
}

.case-study-hero p,
.case-study-hero .short-description {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}
.case-study-hero .short-description p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 10px 0;
}
.case-study-hero .short-description p:last-child {
    margin-bottom: 0;
}

.case-study-image {
    width: 100%;
    max-width: 1200px;
    height: 480px;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 4% 80px 4%;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.case-study-card {
    background: var(--card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.case-study-card h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
}

.case-study-card p {
    color: #555555;
    line-height: 1.8;
    margin: 0;
    font-size: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li span.label {
    color: var(--muted);
    font-weight: 500;
}

.info-list li span.val {
    color: var(--text-darker);
    font-weight: 600;
}

.btn-visit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    margin-bottom: 15px;
    border: none;
    box-sizing: border-box;
}

.btn-visit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: var(--text);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    font-size: 15px;
    box-sizing: border-box;
}

.btn-back:hover {
    background: #f8fafc;
    border-color: var(--border-hover);
}

/* FOOTER */
.main-footer {
    background-color: #50ABE3; /* Bright sky blue matching hexalabes.com */
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 60px 4%;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 15px 0;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 350px;
    font-size: 14px;
    margin: 0;
}

.footer-links h5 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 20px 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 0.8;
    color: #ffffff;
}

.footer-bottom-bar {
    background-color: var(--primary); /* Deep blue #022179 */
    color: rgba(255, 255, 255, 0.85);
    padding: 20px 4%;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 900px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }
    .case-study-hero h1 {
        font-size: 38px;
    }
    .case-study-image {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
        text-align: center;
        gap: 5px;
    }
    .main-navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .nav-links {
        gap: 20px;
    }
    .section-header h2 {
        font-size: 32px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* PRODUCTS INDEX PAGE STYLES */



/* TECH TAGS */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

    .tech-stack span {
        background: rgba(2, 33, 121, 0.05);
        border: 1px solid rgba(2, 33, 121, 0.1);
        color: var(--primary);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        transition: all 0.3s ease;
    }



.portfolio-card:hover .tech-stack span {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.products-section {
    padding: 60px 4% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.products-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.products-section-header .tagline {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.products-section-header h2 {
    font-size: 40px;
    margin: 0 0 15px 0;
    color: var(--primary);
}

.products-section-header p {
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px var(--glow);
}

.product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content .category {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-content h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: var(--text-darker);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-card:hover .product-content h3 {
    color: var(--primary);
}

.product-card:hover .tech-stack span {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.product-content p,
.product-content .short-description {
    color: #555555;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 14.5px;
    flex-grow: 1;
}
.product-content .short-description p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 10px 0;
}
.product-content .short-description p:last-child {
    margin-bottom: 0;
}

.product-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-top: auto;
}

.product-card .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* PRODUCT DETAILS PAGE STYLES */
.product-detail-hero {
    padding: 80px 4% 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.product-detail-hero-img img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-detail-hero-content .tag {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
}

.product-detail-hero-content h1 {
    font-size: 44px;
    color: var(--primary);
    margin: 15px 0 20px 0;
    line-height: 1.2;
}

.product-detail-hero-content p,
.product-detail-hero-content .short-description {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}
.product-detail-hero-content .short-description p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 10px 0;
}
.product-detail-hero-content .short-description p:last-child {
    margin-bottom: 0;
}

.product-detail-hero-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.product-detail-hero-content .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4% 80px;
}

.product-detail-card {
    background: var(--card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.product-detail-card h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
}

.product-detail-card p {
    color: #555555;
    line-height: 1.8;
    margin: 0;
    font-size: 15px;
}

.product-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

@media(max-width:900px){
    .product-detail-hero-grid {
        grid-template-columns: 1fr;
    }
    .product-detail-hero-content h1 {
        font-size: 34px;
    }
}

/* HIDE RECAPTCHA V3 BADGE */
.grecaptcha-badge {
    display: none !important;
}