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

/* Portfolio base styles */
:root {
    color-scheme: dark;
    font-family: Roboto, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #09090b;
    color: #f4f4f5;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    min-height: 100vh;
    font-size: 18px;
    line-height: 1.65;
    background: radial-gradient(circle at top, rgba(255,204,0,0.08), transparent 28%),
                linear-gradient(180deg, #09090b 0%, #121214 100%);
}
a {
    color: inherit;
    text-decoration: none;
}
img, video {
    max-width: 100%;
    display: block;
}
button {
    font: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6,
.font-display,
.hero-title,
.section-title,
.brand-title,
.project-card h3,
.result-title {
    font-family: "Space Grotesk", Roboto, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.section {
    padding: 4rem 0;
}
.section-dark {
    background: rgba(18, 18, 20, 0.96);
}
.card {
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 80px rgba(0,0,0,0.22);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,204,0,0.3);
}
.card-hero {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.card-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,9,11,0.10), rgba(9,9,11,0.85));
}
.card-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
    background: #ffcc00;
    color: #09090b;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: #ffd633;
}
.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #f4f4f5;
    border-color: rgba(255,255,255,0.16);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.14);
}
.case-intro {
    padding: 50px 20px 50px 20px;
}
.case-intro .section-title,
.case-intro h1 {
    margin-bottom: 36px;
}
.slides-grid {
    margin-top: 40px;
}
.section-title {
    font-size: clamp(24px, 3vw, 40px);
    margin: 0 0 1rem;
    letter-spacing: -0.04em;
}
.section-subtitle {
    font-size: 18px;
    max-width: 52ch;
    margin: 0 auto;
    color: rgba(244,244,245,0.76);
    line-height: 1.8;
}
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
}
.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}
.header-brand strong {
    font-size: 1.5rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.header-brand span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.68);
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.nav-links a {
    color: rgba(244,244,245,0.78);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.nav-links a:hover {
    color: #ffcc00;
}
.hero-title {
    margin: 0;
    font-size: clamp(48px, 6vw, 72px);
    line-height: 0.98;
}
.hero-copy {
    margin: 1.25rem 0 0;
    max-width: 46rem;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(244,244,245,0.85);
}
/* Hero actions and contact buttons */
.hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-top: 1.75rem;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}
.contact-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0 1rem !important;
    min-width: 0;
    flex: 1 1 0;
    max-width: 260px;
    height: 52px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transform: translateZ(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: pulse 2.8s infinite;
}
.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,204,0,0.12);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255,204,0,0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,204,0,0.0);
        transform: scale(1);
    }
}
.stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2.5rem;
}
.stats-card {
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.stats-card strong {
    display: block;
    font-size: 2rem;
    color: #ffcc00;
}
.stats-card span {
    display: block;
    margin-top: 0.55rem;
    color: rgba(244,244,245,0.7);
}
.project-card {
    position: relative;
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.04);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.project-card img,
.project-card video {
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.project-card-content {
    padding: 1.5rem;
}
.project-card h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.25;
}
.project-card p {
    color: rgba(244,244,245,0.78);
    font-size: 18px;
    margin: 0 0 1rem;
    line-height: 1.75;
}
.project-card .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(244,244,245,0.64);
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.feature-list li::before {
    content: "\2713";
    display: inline-flex;
    min-width: 1.4rem;
    color: #ffcc00;
    font-weight: 900;
}
footer {
    padding: 3rem 0 2rem;
    color: rgba(244,244,245,0.72);
}
footer .footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
}
footer p,
footer a {
    color: rgba(244,244,245,0.6);
}
footer a:hover {
    color: #ffcc00;
}
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .contact-btn { width: 100%; max-width: none; flex: 0 0 auto; }
}
@media (max-width: 640px) {
    .header-nav { flex-direction: column; align-items: stretch; }
    body { font-size: 16px; }
    .hero-title { font-size: clamp(36px, 10vw, 44px); }
    .hero-copy,
    .section-subtitle,
    .project-card p { font-size: 16px; }
    .section-title { font-size: clamp(24px, 7vw, 28px); }
    .project-card h3 { font-size: clamp(18px, 6vw, 20px); }
}

/* Header styles copied from index.html to ensure uniform header across pages */
.header-bar { max-width: 1320px; margin: 12px auto 0; padding: 0 16px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; border-radius: 26px; background: rgba(15,15,15,0.82); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.08); padding: 0 24px; }
.header-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-brand .brand-title { font-size: 30px; font-weight: 700; color: #f5f5f5; }
.header-brand .brand-subtitle { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #a1a1aa; }
.header-nav { display: flex; align-items: center; gap: 24px; letter-spacing: 0.12em; text-transform: uppercase; color: #d4d4d8; }
.header-nav a { font-size: 16px; }
.header-nav a { white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 0 1rem; min-width: 0; height: 44px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.06); color: #f5f5f5; font-size: 0.92rem; white-space: nowrap; }
.header-action i { width: 18px; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 1024px) {
    .header { padding: 0 1rem; }
}

/* Case study layout for insurance-automation.html */
.wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.case-section { margin: 56px 0; }
.section-header { margin-bottom: 24px; max-width: 780px; }
.section-kicker { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,204,0,0.8); margin-bottom: 10px; }
.section-title { font-size: clamp(24px, 3vw, 40px); font-weight: 800; line-height: 1.1; color: #f5f5f5; margin: 0 0 8px; }
.section-text { font-size: 18px; line-height: 1.65; color: #a1a1aa; max-width: 780px; margin: 0; }
.meta-cards { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.meta-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); padding: 10px 14px; border-radius: 12px; color: #d4d4d8; font-size: 14px; }
.bullet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.bullet-card { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.10); border-radius: 18px; padding: 18px; color: #d4d4d8; }
.bullet-card h4 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; color: #fff; }
.image-grid { display: grid; gap: 20px; }
.image-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.image-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.image-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.case-image-card { height: 360px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.035); box-shadow: 0 20px 60px rgba(0,0,0,0.35); position: relative; }
.case-image-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.featured-image { max-width: 880px; height: 520px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.035); box-shadow: 0 30px 90px rgba(0,0,0,0.45); }
.featured-image.center { margin: 0 auto; display: block; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
    .bullet-grid { grid-template-columns: repeat(2, 1fr); }
    .image-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .image-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .image-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .bullet-grid { grid-template-columns: 1fr; }
    .image-grid.cols-4, .image-grid.cols-3, .image-grid.cols-2 { grid-template-columns: 1fr; }
    .case-image-card { height: 300px; }
    .featured-image { height: 360px; }
    .case-section { margin: 44px 0; }
}

.hero-visual { height: 380px; max-width: 520px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 18px; }

/* Slide / process styles */
.portfolio-section {
    background-color: #0b0b0b;
    padding: 60px 20px;
    margin-top: 80px;
    color: #fff;
    border-radius: 28px;
    overflow: hidden;
}
.slides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.slide-card {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}
.slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.result-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    min-height: 420px;
    padding: 32px;
}
.result-content {
    max-width: 100%;
}
.result-kicker {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #d8c17e;
    margin-bottom: 16px;
}
.result-title {
    font-size: clamp(32px, 3vw, 40px);
    margin-bottom: 16px;
    line-height: 1.2;
}
.result-text {
    font-size: 18px;
    line-height: 1.65;
    color: #e2e2e2;
    margin-bottom: 24px;
}

.result-button {
    margin-top: 12px;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.result-button:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .case-image-card { height: 320px; }
    .featured-image { height: 420px; }
}
@media (max-width: 640px) {
    .case-image-card { height: 300px; }
    .featured-image { height: 360px; }
    .case-section { margin: 44px 0; }
    .result-title { font-size: clamp(24px, 7vw, 28px); }
    .result-text { font-size: 16px; }
}
