/* ==========================================================================
   Premium Portfolio Stylesheet - Recreated to Match Figma UI exactly
   Author: Antigravity AI
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-handwriting: 'Caveat', cursive;

    /* Color Palette (Figma-accurate) */
    --bg-primary: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #555555;
    --accent-dark: #121212;
    --accent-hover: #000000;
    --green-status: #00B300;
    /* Bright Figma green */

    /* Borders & Dividers */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);

    /* Animation Timings */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-dark);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary svg {
    transition: var(--transition-smooth);
}

.btn-primary:hover svg {
    transform: rotate(15deg) scale(1.1);
}

/* Button Sizing */
.btn-lg {
    padding: 14px 32px;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Header / Floating Navigation Bar (Figma Accurate Layout)
   ========================================================================== */
.navbar-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 0;
    animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.navbar {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 6px 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.navbar:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

/* Logo Box */
.nav-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-left: 3px;
    transition: var(--transition-quick);
    color: #000000;
}

.nav-logo-box:hover {
    background-color: #F8F8F8;
    transform: scale(0.96);
}

/* Vertical Dividers */
.nav-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 0 16px;
}

/* Social Links container */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hover-reveal Pill for Social Media links */
.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    color: #60605C;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 48px;
    border-radius: 100px;
}

/* Base width (initial state, showing only the centered icon) */
.nav-social-link.instagram {
    width: 48px;
}

.nav-social-link.x {
    width: 48px;
}

.nav-social-link.dribbble {
    width: 48px;
}

.nav-social-link.linkedin {
    width: 48px;
}

/* Expanded width and brand colors on hover */
.nav-social-link.instagram:hover {
    width: 110px;
    background-color: rgba(225, 48, 108, 0.08);
    color: #E1306C;
}

.nav-social-link.x:hover {
    width: 56px;
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000;
}

.nav-social-link.dribbble:hover {
    width: 100px;
    background-color: rgba(234, 76, 137, 0.08);
    color: #EA4C89;
}

.nav-social-link.linkedin:hover {
    width: 100px;
    background-color: rgba(10, 102, 194, 0.08);
    color: #0A66C2;
}

/* The Icon Wrapper (centered, translates up and fades out on hover) */
.social-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    opacity: 0.7;
    transform: scale(1);
}

.nav-social-link:hover .social-icon-wrapper {
    opacity: 0;
    transform: translateY(-12px) scale(0.85);
}

/* The Text Label Wrapper (absolute centered, translates in from bottom on hover) */
.social-text-wrapper {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-social-link:hover .social-text-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Action button inside navbar */
.btn-navbar-action {
    background-color: #121212;
    color: #FFFFFF;
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition-quick);
    border: none;
    cursor: pointer;
    margin-right: 3px;
    display: block;
}

.btn-navbar-action:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section Layout
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 130px 0 40px 0;
    position: relative;
    z-index: 10;
}

.hero-container {
    max-width: 720px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 50px;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Overlapping Avatars Group */
.avatar-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
    position: relative;
    width: 100%;
}

.avatar-frame {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.avatar-frame:hover {
    transform: scale(1.05);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.22);
    /* Cropping the baked-in grey border of avatar.png */
    transition: var(--transition-smooth);
}

/* Hero Headline */
.hero-headline {
    font-size: clamp(2.4rem, 5.2vw, 3.8rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 20px;
    max-width: 720px;
}

.accent-italic {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    font-size: 1.06em;
}

/* Handwritten Note Wrapper */
.handwritten-wrapper {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: middle;
}

.handwritten-note {
    font-family: var(--font-handwriting);
    font-size: 0.52em;
    font-weight: 400;
    color: #8C8C88;
    position: absolute;
    left: 10px;
    bottom: -6px;
    transform: rotate(-6deg);
    /* Slanted upwards left to right */
    white-space: nowrap;
    letter-spacing: 0px;
    display: inline-block;
    animation: floatNote 4s ease-in-out infinite;
}

/* Availability Status Badge (Figma Accurate: Clean text, no pill outline) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--green-status);
    transition: var(--transition-quick);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green-status);
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2.5px solid var(--green-status);
    animation: dotPulse 2s infinite ease-out;
}

.status-text {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
    width: 100%;
}

/* ==========================================================================
   Background Grid Layout Lines
   ========================================================================== */
.bg-grid-lines {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 160px);
    max-width: 1400px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1;
}

.grid-line {
    width: 1px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes dotPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

@keyframes floatNote {

    0%,
    100% {
        transform: rotate(-6deg) translateY(0);
    }

    50% {
        transform: rotate(-5deg) translateY(-2px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -15px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ==========================================================================
   UI Showcase Slider Section
   ========================================================================== */
.slider-wrapper-in-hero {
    overflow: hidden;
    width: 100%;
    padding: 10px 0 40px;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    display: flex;
    position: relative;
    padding: 20px 0;
}

/* Subtle fade gradients at screen edges */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 160px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 30s linear infinite;
    padding-left: 16px;
    /* offset to avoid immediate cutoff */
}

/* Pause scroll animation on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

.slide-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 360px;
    flex-shrink: 0;
}

/* UI Showcase Mockup Card Frame */
.ui-card {
    width: 360px;
    height: 460px;
    background-color: #F2F2EF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.slide-card-wrapper:hover .ui-card {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Mockup Corner Screw Dots (like Figma UI screenshot 2) */
.card-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #E2E2DF;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card-dot.top-left {
    top: 12px;
    left: 12px;
}

.card-dot.top-right {
    top: 12px;
    right: 12px;
}

.card-dot.bottom-left {
    bottom: 12px;
    left: 12px;
}

.card-dot.bottom-right {
    bottom: 12px;
    right: 12px;
}

/* Sketch SVG Image Container inside Card */
.sketch-svg {
    position: absolute;
    top: 14px;
    left: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    border-radius: 12px;
    background-color: #7E7E7A;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

/* Card Hover Zoom */
.slide-card-wrapper:hover .sketch-svg {
    transform: scale(1.04);
}

/* Scribble/Sketch continuous path inside SVG mask */
.scribble-path {
    fill: none;
    stroke: white;
    stroke-width: 180px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* On hover, draw the continuous organic scribble to reveal the UI */
.slide-card-wrapper:hover .scribble-path {
    stroke-dashoffset: 0;
}

/* Marquee Scroll Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .navbar-container {
        top: 16px;
        width: calc(100% - 32px);
    }

    .navbar {
        padding: 4px;
    }

    .navbar .btn-lg {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .navbar .btn-lg svg {
        width: 14px;
        height: 14px;
    }

    .navbar .nav-logo-box {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .navbar .nav-divider {
        height: 16px;
        margin: 0 10px;
    }

    .navbar .nav-socials {
        gap: 4px;
    }

    .navbar .nav-social-link {
        height: 36px;
        width: 36px;
    }

    .navbar .nav-social-link.instagram {
        width: 36px;
    }

    .navbar .nav-social-link.x {
        width: 36px;
    }

    .navbar .nav-social-link.dribbble {
        width: 36px;
    }

    .navbar .nav-social-link.linkedin {
        width: 36px;
    }

    .navbar .nav-social-link.instagram:hover {
        width: 88px;
    }

    .navbar .nav-social-link.x:hover {
        width: 44px;
    }

    .navbar .nav-social-link.dribbble:hover {
        width: 80px;
    }

    .navbar .nav-social-link.linkedin:hover {
        width: 80px;
    }

    .hero-section {
        padding-top: 100px;
    }

    .handwritten-note {
        position: relative;
        display: block;
        left: 0;
        bottom: 0;
        text-align: center;
        margin-top: 6px;
        font-size: 0.6em;
        transform: rotate(-2deg);
        animation: none;
    }

    .bg-grid-lines {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 4px 6px;
    }

    .nav-divider {
        margin: 0 6px;
    }

    .navbar .btn-lg {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .navbar .btn-lg svg {
        display: none;
        /* hide arrow icon on very small mobile to save space */
    }
}

/* ==========================================================================
   Interactive CV Summary Section (Mockup Accurate Design)
   ========================================================================== */
.summary-section {
    padding: 100px 0;
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: transparent;
}

.summary-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-title-container {
    text-align: center;
    margin-bottom: 32px;
}

.summary-title {
    font-size: clamp(2.4rem, 5.2vw, 3.8rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

/* Tab Bar */
.summary-tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    max-width: 800px;
}

.summary-tab {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    background-color: #F2F2EF;
    border: 1px solid transparent;
    padding: 12px 20px;
    border-radius: 100px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.summary-tab:hover {
    background-color: #E6E6E3;
    transform: scale(0.97);
}

.summary-tab.active {
    background-color: #121212;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.summary-tab.active svg {
    color: #FFFFFF;
}

/* Card Container & Card */
.summary-card-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin: 0 auto;
}

.summary-card-frame {
    background-color: #FFFFFF;
    /* white frame on very outside */
    border-radius: 40px;
    padding: 8px;
    /* margin between white frame and black border */
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.12);
    /* stronger, deeper drop shadow on frame */
    width: 100%;
    box-sizing: border-box;
}

.summary-card {
    display: block;
    background-color: #F9F9F6;
    /* off-white background in middle */
    border: 1px solid rgba(0, 0, 0, 0.15);
    /* soft, low opacity black border outline */
    border-radius: 32px;
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
}

.summary-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-target-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #121212;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.delivery-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #121212;
    background-color: #EAEAEA;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 100px;
    letter-spacing: -0.01em;
}

.summary-card-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #121212;
    margin-bottom: 12px;
    line-height: 1.1;
}

.summary-card-desc {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.55;
    margin-bottom: 24px;
    font-weight: 500;
}

.summary-card-metric {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #16A34A;
    /* Mockup green stats color */
    line-height: 1;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
}

.summary-card-metric .metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    margin-left: 10px;
    letter-spacing: 0;
}

/* Switch Toggle UI */
.summary-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-top: 16px;
}

.summary-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.summary-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E6E6E3;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: #16A34A;
    /* active green state */
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.toggle-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.45);
}

/* Full Width Button */
.btn-full-width {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 28px;
    height: 48px;
}

/* Footer Details Grid */
.summary-card-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 28px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    padding-left: 24px;
    line-height: 1.4;
}

.footer-col li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Circular Radio Bullet Icons for Left Column */
.footer-col.radio-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    background-color: transparent;
    box-sizing: border-box;
}

/* Checkmark Bullet Icons for Right Column */
.footer-col.check-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #16A34A;
    /* green checkmark */
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .summary-section {
        padding: 60px 0;
    }

    .summary-card-frame {
        border-radius: 34px;
        padding: 6px;
    }

    .summary-card {
        padding: 28px 20px;
        border-radius: 28px;
    }

    .summary-card-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .summary-card-metric {
        font-size: 2.8rem;
    }
}

/* ==========================================================================
   Case Studies / Portfolio Showcase Section
   ========================================================================== */
.case-studies-section {
    padding: 80px 0 120px 0;
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: transparent;
}

.case-studies-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-studies-title-container {
    text-align: center;
    margin-bottom: 64px;
}

.case-studies-title {
    font-size: clamp(2.4rem, 5.2vw, 3.8rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    text-align: center;
}

.case-study-item {
    width: 100%;
    max-width: 960px;
    margin-bottom: 90px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.case-study-item:last-child {
    margin-bottom: 0;
}

.case-study-card-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.case-study-card {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 440px; /* high-end fixed aspect height */
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(135deg, #E6F0FA 0%, #D0E1F5 100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Background gradient lights up on hover */
.case-study-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F0F6FC 0%, #B9D7F9 100%);
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.case-study-card:hover .case-study-bg-glow {
    opacity: 1;
}

/* Mockup Phones Container */
.mockup-phones-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 480px; /* larger wrapping bounds for bigger mockups */
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.mockup-phone {
    position: absolute;
    bottom: -45px; /* sit lower to slide up dramatically on hover */
    height: 110%; /* increased phone visual height for a premium look */
    width: auto;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-left {
    left: 20px;
    transform: rotate(-2deg) scale(0.96);
    z-index: 1;
    transform-origin: bottom right;
}

.phone-right {
    right: 20px;
    transform: rotate(2deg) scale(0.96);
    z-index: 2;
    transform-origin: bottom left;
}

/* Hover: mockups slide up, scale, and move apart in opposite directions */
.case-study-card:hover .phone-left {
    bottom: -15px;
    transform: translateX(-40px) rotate(-8deg) scale(1.04);
}

.case-study-card:hover .phone-right {
    bottom: -15px;
    transform: translateX(40px) rotate(8deg) scale(1.04);
}

/* Image Hover Custom Button Overlay */
.case-study-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.01);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.case-study-card:hover .case-study-overlay {
    opacity: 1;
}

.view-project-btn {
    background-color: #121212;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: lowercase;
}

.case-study-card:hover .view-project-btn {
    transform: scale(1);
}

/* Case Study Typography */
.case-study-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.case-study-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #121212;
    text-transform: lowercase;
    margin-bottom: 8px;
    text-align: left;
    max-width: 780px;
}

.case-study-desc {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 2vw, 1.02rem);
    font-weight: 500;
    color: #737370;
    line-height: 1.5;
    text-transform: lowercase;
    margin-bottom: 20px;
    text-align: left;
    max-width: 820px;
}

/* Tag Pills */
.case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.tag-pill:hover {
    transform: scale(1.04);
}

.tag-blue {
    background-color: #EFF6FF;
    color: #3B82F6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.03);
}

.tag-green {
    background-color: #ECFDF5;
    color: #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.03);
}

.tag-pink {
    background-color: #FDF2F8;
    color: #EC4899;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.03);
}

/* Mobile Responsiveness for Projects */
@media (max-width: 768px) {
    .case-studies-section {
        padding: 50px 0 80px 0;
    }
    
    .case-study-item {
        margin-bottom: 40px;
    }
    
    .case-study-card-wrapper {
        border-radius: 16px;
        margin-bottom: 16px;
    }
    
    .case-study-card {
        height: 320px;
    }
    
    .mockup-phones-container {
        width: 250px;
    }
    
    .mockup-phone {
        bottom: -15px;
    }
    
    .case-study-card:hover .phone-left {
        transform: translateX(-16px) rotate(-5deg) scale(1.02);
    }
    
    .case-study-card:hover .phone-right {
        transform: translateX(16px) rotate(5deg) scale(1.02);
    }
}

@media (max-width: 480px) {
    .case-study-card {
        height: 220px;
    }
    
    .mockup-phones-container {
        width: 170px;
    }
    
    .mockup-phone {
        bottom: -10px;
    }
    
    .case-study-card:hover .phone-left {
        transform: translateX(-10px) rotate(-4deg) scale(1.01);
    }
    
    .case-study-card:hover .phone-right {
        transform: translateX(10px) rotate(4deg) scale(1.01);
    }
}