/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Reset and base styles */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    vertical-align: baseline;
}

body {
    background-color: #fcfcfc;
    color: #333;
    line-height: 1.6;
    font-family: "Work Sans", sans-serif;
    text-decoration: none;
}

/* Typography */
h1, h2, h3 {
    font-weight: 400;
    margin-bottom: 20px;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; font-weight: 300; margin-bottom: 20px; color: #333; }
h3 { font-size: 1.4rem; }
h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #667eea;
    margin-bottom: 8px;
}
.title-note {
    font-size: 0.9rem;
    color: #888;
    margin-top: -15px;
    margin-bottom: 30px;
    z-index: 2;
}
.title-note a {
    position: relative;
    z-index: 3;
}
.title-note a:hover {
    text-decoration: underline;
}

/* Links */
a {
    text-decoration: none;
    color: #333;
}
a:hover {
    color: #000;
}

/* Header Section */
.header-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px 24px 24px;
    margin-bottom: 24px;
    /* background: #f2f2f2; */
    /* overflow: hidden; */
}

.hero-section {
    padding: 80px 24px 24px 24px;
    margin-bottom: 60px;
}
.header-section::before {
    content: "";
    position: absolute;
    top: 80px;
    left: 20%;
    width: 500px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 180, 100, 0.25), transparent 70%);
    z-index: 0;
}
.header-section .bg-white.rounded {
    position: relative;
    z-index: 2;
}
.header-section .bg-white.rounded img {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    position: relative;
    background: white;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(96,15,77,0.10);
}
.project-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 60%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 180, 100, 0.25), transparent 70%);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
    pointer-events: none;
}
.project-card:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.project-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}
.project-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #333;
}
.project-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}
.project-image {
    position: relative;
    z-index: 1;
    padding: 30px;
}
.project-card img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease-in-out;
    position: relative;
    z-index: 1;
}
.project-card:hover img {
    filter: grayscale(0%);
}

/* Button */
.hover-button {
    border: #333 0.5px solid;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    position: relative;
    z-index: 2;
}
.hover-button:hover {
    border: 0;
    background: #333;
    color: #fff;
}
.project-card:hover .hover-button {
    opacity: 1;
}

/* Misc */
.intro-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}
.main-title {
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 40px;
}
.projects-indicator {
    text-align: center;
    margin: 20px 0 20px 0;
}
.projects-text {
    color: #666;
    font-size: 1.1rem;
}
.arrow-down {
    font-size: 1.5rem;
    color: #999;
}
.microsoft-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}
.ms-squares {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 2px;
    width: 20px;
    height: 20px;
    margin-right: 12px;
}
.ms-square {
    width: 8px;
    height: 8px;
}
.ms-square:nth-child(1) { background-color: #f25022; }
.ms-square:nth-child(2) { background-color: #7fba00; }
.ms-square:nth-child(3) { background-color: #00a4ef; }
.ms-square:nth-child(4) { background-color: #ffb900; }
.brand-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}
.monetize-text {
    margin-left: 8px;
    color: #666;
}
.nav-item {
    padding: 5px 10px;
    border-radius: 4px;
}
.nav-item.active {
    background: #0078d4;
    color: white;
}
.bottom-images img {
    margin-bottom: 40px;
}
.bottom-images img:last-child {
    margin-right: 0;
}

/* Footer */
#footer .inner {
    text-align: center;
}
#footer {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #333333;
    color: #fff;
    padding: 32px 0 32px 0;
    border: none;
}
#footer .menu {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    .project-card .row {
        flex-direction: column;
    }
    .project-image {
        border-left: none;
        border-top: 1px solid #eee;
    }
}

/* Project pages */
.case-section {
    margin-bottom: 80px;
}
