:root {
    --primary: #0033A0;
    --accent: #FF6B00;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --glass: rgba(255, 255, 255, 0.8);
    --border: rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background Orbs */
.light-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: var(--primary);
    top: -20%;
    left: -10%;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: var(--accent);
    bottom: -10%;
    right: -10%;
}

/* Navigation */
.modern-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(248, 250, 252, 0.5);
    /* Slightly darker, more transparent */
    backdrop-filter: blur(25px);
    /* Stronger frosted glass effect */
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.modern-nav.scrolled {
    top: 0.8rem;
    width: 98%;
    background: rgba(248, 250, 252, 0.75);
    /* Consistent frosted feel on scroll */
    box-shadow: 0 20px 50px rgba(0, 51, 160, 0.15);
    padding: 0.6rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
    /* Context for dropdown */
}

#nav-logo {
    height: 40px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
    /* Push to right */
    margin-right: 1.5rem;
    /* Space before the dots */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 51, 160, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 51, 160, 0.25);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.btn-primary-small {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-menu-btn {
    display: flex;
    /* Changed from none to flex to show on PC */
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--accent) !important;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-menu-btn:active {
    transform: scale(0.9);
    background: transparent !important;
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 51, 160, 0.05);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
}

.main-hero-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.1);
}

.img-overlay-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: white;
    padding: 1.2rem 1.8rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.overlay-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}

.overlay-card-title {
    white-space: nowrap;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.overlay-card-desc {
    white-space: nowrap;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    /* Prevent squeezing in flex container */
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Section Divider */
.section-divider {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(to bottom, #ffffff, var(--bg-light));
    position: relative;
    overflow: hidden;
}

.divider-line {
    height: 1px;
    flex: 1;
    max-width: 150px;
    background: linear-gradient(90deg, transparent, rgba(0, 51, 160, 0.2), transparent);
}

.divider-node {
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: relative;
}

.divider-node::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: dividerPulse 2s infinite;
}

@keyframes dividerPulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}



/* Solutions Section */
.solutions-section {
    padding: 10rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-box {
    padding: 3rem;
    background: white;
    border-radius: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tech-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 51, 160, 0.05);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 51, 160, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.tech-box h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.tech-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: #020617;
    color: white;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-section .section-title {
    color: white;
}

.about-section .content-box p {
    color: #94A3B8;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.btn-text {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Bento Masonry */
.bento-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}

.bento-cell {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
}

.cell-1 {
    grid-row: span 2;
    background-image: url('../images/hero-space.png');
}

.cell-2 {
    background-image: url('../images/hero-office.png');
}

.cell-3 {
    background-color: var(--primary);
    position: relative;
}

.cell-3::after {
    content: "Beswell Tech";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: white;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-grid h4 {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-grid p,
.footer-grid a {
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.beian-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.beian-icon {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .img-overlay-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        padding: 1rem 1.2rem;
        width: max-content;
        max-width: 90vw;
    }

    .overlay-card-title {
        font-size: 0.9rem;
    }

    .overlay-card-desc {
        font-size: 0.85rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 140px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }



    .modern-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 110%;
        right: 0;
        width: 200px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        text-align: right;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: flex;
        /* Keep showing the dots on mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-info,
    .footer-legal {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .nav-wrapper {
        padding: 0 1rem;
    }

    #nav-logo {
        height: 28px;
    }



    .tech-box {
        padding: 2rem;
    }
}