* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050505;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text: #fefefe;
    --muted: #a9a9a9;
    --accent: #EF5350;
    --accent-2: #FFEB3B;
    --grey-600: #e9e9e9;
    --link:#92b3cb;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #b74836 #01030e;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cambay', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    width: 900px;
    height: 900px;
    top: -300px;
    right: -250px;
    background:
        radial-gradient(circle at 25% 30%, #86ed3a9c 0%, transparent 45%),
        radial-gradient(circle at 70% 20%, #d46f0661 0%, transparent 40%),
        radial-gradient(circle at 55% 75%, #000613 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, #ec4899a1 0%, transparent 35%);
    filter: blur(120px);
    opacity: .45;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 5, 5, .2) 45%, rgba(5, 5, 5, .85) 100%);
    z-index: -1;
    pointer-events: none;
}

/* HEADER WRAPPER */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* NAVBAR */
.navbar {
    width: 100%;
    height: 75px;
    padding: 0 5%;
    display: flex;
    font-family: 'Expletus Sans', sans-serif;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.logo img {
    height: 32px;
    width: auto;
}

.hide {
    display: block;
    opacity: 0;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2em;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #cfcfcf;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Prevent link underline on the nav CTA button */
.nav-links li.nav-cta a::after {
    display: none;
}

/* SUB BAR ATTACHED TO NAVBAR */
.sub-bar {
    width: 100%;
    height: 1.8em;
    padding: 0 7%;
    background: rgba(10, 10, 10, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--muted);
}

.sub-bar-left,
.sub-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sub-bar a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sub-bar a:hover {
    color: var(--text);
}

.sub-bar .dot {
    opacity: 0.4;
    font-size: 0.6rem;
}

.mobile-sub-bar {
    display: none;
}

/* BUTTON STYLES */
.btn {
    font-family: 'Expletus Sans', sans-serif;
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.btn-secondary {
    border: 1px solid var(--surface-border);
    color: #fefefe;
    background: var(--surface);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.btn-secondary.nav-btn {
    padding: 10px 22px;
    font-size: 0.88rem;
    white-space: nowrap;
}

.service-design-post{
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.service-design-post hr{
    color:grey;
    opacity:0.3;
    margin:0.5em;
}

.service-design-post li{
    list-style: none;
    margin: 1.5em;
}

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    margin-left: auto;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* SERVICES SECTION - BENTO GRID */
.services-section {
    padding: 120px 8% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
}

/* BENTO SPANNING CLASSES */
.col-span-1 {
    grid-column: span 1;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-4 {
    grid-column: span 4;
}

.row-span-2 {
    grid-row: span 2;
}

/* SERVICE CARD STYLING */
.service-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.service-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    text-decoration: none;
    color: var(--grey-600);
}

.service-card:hover {
    background: linear-gradient(#090907, #060605) padding-box, linear-gradient(40deg, #5018a8, #ef5350, #0354fb, #0504b5) border-box;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* FEATURED & HERO BENTO CARDS */
.service-card.featured {
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.08) 0%, rgba(255, 235, 59, 0.03) 100%);
    border-color: rgba(239, 83, 80, 0.25);
}

.service-card.hero-bento {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card div {
    color: var(--muted);
}

.service-card .cardhl {
    color: #fefefe;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 16px;
    border-left: 3px solid var(--accent);
    margin-bottom: 16px;
    border-radius: 6px;
    font-weight: 600;
}

.service-card h1 {
    font-family: 'Expletus Sans', sans-serif;
    font-size: 2.4rem;
    margin-bottom: 14px;
    color: #fefefe;
    line-height: 1.3;
}

.service-card h3 {
    font-family: 'Expletus Sans', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: #fefefe;
    line-height: 1.3;
}

.service-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.scrollable-content {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
    margin-top: 10px;
    scrollbar-width: thin;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-top: 16px;
}

.service-tags li {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d8d8d8;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-span-1,
    .col-span-2,
    .col-span-3,
    .col-span-4 {
        grid-column: span 1;
    }

    .col-span-2-md {
        grid-column: span 2;
    }

    .row-span-2 {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {

    .navbar {
        padding: 0 24px;
        height: 70px;
    }

    .sub-bar {
        justify-content: space-evenly;
    }

    /* Render Sub-Bar content within Mobile Navigation Drawer */
    .mobile-sub-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
        padding-top: 20px;
        border-top: 1px solid var(--surface-border);
        width: 80%;
        text-align: center;
    }

    .mobile-sub-bar .social-links,
    .mobile-sub-bar .policy-links {
        display: flex;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .mobile-sub-bar a {
        font-size: 0.85rem !important;
        color: var(--link) !important;
    }

    .mobile-sub-bar a:hover {
        color: #fff !important;
    }



    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050;
    }

    .nav-links.open {
        right: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .col-span-2-md {
        grid-column: span 1;
    }
}