@import url('https://fonts.googleapis.com/css2?family=Agbalumo&family=Inter:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Global Design System - Color Variables
   ========================================================================== */

:root {
    /* Primary & Brand Colors */
    --primary: #0C29AB;
    --cyan: #31bfd8;
    --primary-contrast: #FFFFFF;

    /* Base Surfaces & Text */
    --text: #1A1A1A;
    --surface: #FFFFFF;
    --background: #FFFFFF;

    /* Grayscale */
    --gray-10: #F7F7F7;
    --gray-20: #F2F2F2;
    --gray-30: #E6E6E6;
    --gray-40: #C7C7C7;
    --gray-50: #A6A6A6;
    --gray-60: #8A8A8A;
    --gray-70: #525252;
    --gray-80: #1A1A1A;

    /* Accent & Pastel Tones */
    --cream-main: #F5F5EE;
    --light-purple: #EDEFFF;
    --peach: #FCF5FF;

    /* Layout */
    --max-width: 1200px;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-accent: 'Agbalumo', cursive;
    --font-body: 'Oswald', sans-serif; /* App default font set to Oswald */
    --font-inter: 'Inter', sans-serif;
}

/* ==========================================================================
   Button Style: Filled Light Primary (Bubble Default)
   ========================================================================== */

.btn-filled-light-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    background-color: var(--text);
    color: var(--primary-contrast);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    word-spacing: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 200ms ease, opacity 200ms ease;
}

/* Icon inside button */
.btn-filled-light-primary i,
.btn-filled-light-primary svg {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--primary-contrast);
}

/* Condition: Hover state */
.btn-filled-light-primary:hover:not(:disabled) {
    background-color: var(--gray-70);
}

/* Condition: Disabled / Not clickable */
.btn-filled-light-primary:disabled,
.btn-filled-light-primary.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* Condition: Mobile width < 600px */
@media (max-width: 600px) {
    .btn-filled-light-primary {
        font-size: 13px;
        padding: 7px 14px;
    }
}

/* ==========================================================================
   Button Style: Cyan (#31bfd8)
   ========================================================================== */

.btn-cyan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    background-color: var(--cyan);
    color: var(--primary-contrast);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    word-spacing: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 200ms ease;
}

/* Icon inside button */
.btn-cyan i,
.btn-cyan svg {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--primary-contrast);
}

/* Condition: Hover state (70% opacity, no bg color change) */
.btn-cyan:hover:not(:disabled) {
    opacity: 0.7;
}

/* Condition: Disabled / Not clickable */
.btn-cyan:disabled,
.btn-cyan.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* Condition: Mobile width < 600px */
@media (max-width: 600px) {
    .btn-cyan {
        font-size: 13px;
        padding: 7px 14px;
    }
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-body);
}

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

/* ==========================================================================
   Typography System (Bubble Text Styles)
   ========================================================================== */

/* Headings (Oswald) */
h1, .heading-1 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
}

h2, .heading-2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
}

h3, .heading-3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin: 0;
}

h4, .heading-4 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
}

h5, .heading-5 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
}

h6, .heading-6 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    margin: 0;
}

/* Body Styles */
.body-18 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
}

body, .body-16 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
}

.body-14 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
}

.body-12 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
}

/* Condition: Responsive text scaling on screen width <= 600px */
@media (max-width: 600px) {
    /* Headings scaled down */
    h1, .heading-1 { font-size: 32px; }
    h2, .heading-2 { font-size: 26px; }
    h3, .heading-3 { font-size: 22px; }
    h4, .heading-4 { font-size: 18px; }
    h5, .heading-5 { font-size: 16px; }
    h6, .heading-6 { font-size: 13px; }

    /* All Body text reduced by 2px */
    .body-18 { font-size: 16px; }
    body, .body-16 { font-size: 14px; }
    .body-14 { font-size: 12px; }
    .body-12 { font-size: 10px; }
}

/* Typography Modifiers */
.bold, .font-bold {
    font-weight: 700;
}

/* ==========================================================================
   Header Component: header1
   ========================================================================== */

.header1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 10px;
    padding: 0 clamp(16px, 3.5vw, 50px);
    background-color: transparent;
}

.group-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 80px; /* 80px normally */
}

/* Vertical alignment center for all direct children */
.group-content > * {
    align-self: center;
}

/* Condition: Current page width <= 600px */
@media (max-width: 600px) {
    .group-content {
        min-height: 65px; /* 65px on mobile */
    }
}

/* Group Name (Brand - Left) */
.group-name {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.shape-circle {
    width: 10px;
    height: 10px;
    background-color: var(--text);
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* Group Buttons (Actions - Right) */
.group-buttons {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* Home Icon */
.icon-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text);
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: width 200ms ease, height 200ms ease, opacity 200ms ease;
}

.icon-home:hover {
    opacity: 0.7;
}

/* Condition: When page width <= 600px */
@media (max-width: 600px) {
    .icon-home {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Floating Group: Header & Helpers (FloatingGroup_shadow_)
   ========================================================================== */

.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.floating-header .header1 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 clamp(16px, 3.5vw, 50px);
}

/* Body offset when floating header is present */
.has-floating-header {
    padding-top: 80px;
}

@media (max-width: 600px) {
    .has-floating-header {
        padding-top: 65px;
    }
}

/* ==========================================================================
   Hero Section: Group main (Cream Hero Banner)
   ========================================================================== */

.group-main {
    width: 100%;
    background-color: var(--cream-main); /* #F5F5EE */
    padding: 0 clamp(16px, 3.5vw, 50px) clamp(25px, 5vw, 60px) clamp(16px, 3.5vw, 50px);
    margin-top: 0;
}

.hero-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(8px, 2vw, 32px);
    min-height: auto;
}

/* Left Column: Intro & Action */
.group-left {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: clamp(10px, 2.5vw, 40px);
    padding-bottom: clamp(6px, 1.5vw, 15px);
}

.group-left-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: fit-content;
    max-width: 100%;
    justify-content: space-between;
    align-items: center;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-subtext {
    margin: 0 0 clamp(4px, 0.8vw, 12px) 0;
    text-align: center;
}

.hero-title-agbalumo {
    font-family: 'Agbalumo', cursive;
    font-size: clamp(15px, 2.2vw, 32px);
    font-weight: 400;
    line-height: 1.25;
    color: var(--text);
    text-align: center;
    margin: 0 0 clamp(4px, 1vw, 14px) 0;
}

.hero-tagline {
    line-height: 1.35;
    text-align: center;
    margin: 0;
}

.hero-btn-wrapper {
    position: relative;
    margin-top: auto;
    padding-top: clamp(10px, 2vw, 28px);
    display: inline-flex;
    justify-content: center;
    align-self: center;
}

.btn-contact-me {
    font-size: clamp(11px, 1.1vw, 15px);
    padding: clamp(6px, 0.8vw, 10px) clamp(12px, 1.6vw, 24px);
    border-radius: 50px;
    line-height: 1.2;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-contact-me:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* GroupFocus A Popover */
.group-focus-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 370px;
    max-width: min(370px, calc(100vw - 24px));
    background-color: var(--surface); /* #FFFFFF */
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-30); /* #E6E6E6 */
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 220ms;
    pointer-events: none;
}

.group-focus-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.focus-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
}

.focus-row-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.focus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-size: 20px;
}

.focus-icon.whatsapp-icon {
    color: #25D366;
    font-size: 24px;
}

.focus-icon.email-icon {
    color: var(--gray-60);
    font-size: 20px;
}

.focus-icon.video-icon {
    color: var(--gray-60);
    font-size: 18px;
}

.focus-text {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.btn-copy-icon {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--gray-60);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.btn-copy-icon:hover {
    color: var(--text);
    background-color: var(--gray-10);
    transform: scale(1.1);
}

.btn-copy-icon:active {
    transform: scale(0.95);
}

.btn-action-primary,
.btn-action-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 150ms ease, transform 150ms ease;
    border: none;
    line-height: 1.1;
}

.btn-action-primary {
    background-color: var(--text); /* #1A1A1A */
    color: var(--primary-contrast);
}

.btn-action-whatsapp {
    background-color: rgb(38, 136, 60); /* Bubble bTHAt: rgba(38,136,60,1) */
    color: #FFFFFF;
}

.btn-action-primary:hover,
.btn-action-whatsapp:hover {
    opacity: 0.85;
}

/* Mobile adjustments for GroupFocus */
@media (max-width: 600px) {
    .group-focus-dropdown {
        width: 320px;
        padding: 16px 12px;
        gap: 10px;
    }

    .focus-text {
        font-size: 13px;
    }

    .btn-action-primary,
    .btn-action-whatsapp {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* Center Column: Display Picture */
.group-dp {
    flex: 0 0 clamp(90px, 24vw, 360px);
    width: clamp(90px, 24vw, 360px);
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.dp-image {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 0 0 9999px 9999px;
    display: block;
}

/* Right Column: Counter Stats */
.group-right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: clamp(10px, 2.5vw, 40px);
    padding-bottom: clamp(6px, 1.5vw, 15px);
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 28px);
    align-items: center;
    width: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: clamp(20px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -0.5px;
    text-align: center;
}

.stat-label {
    line-height: 1.15;
    margin-top: clamp(2px, 0.4vw, 6px);
    text-align: center;
    white-space: nowrap;
}

/* ==========================================================================
   About Section: Group about
   ========================================================================== */

.group-about {
    width: 100%;
    background-color: var(--surface); /* White */
    padding: clamp(36px, 5vw, 70px) clamp(12px, 2vw, 20px) clamp(48px, 6vw, 80px) clamp(12px, 2vw, 20px);
}

.about-container {
    max-width: 1440px;
    margin: 0 auto;
}

.about-title {
    text-align: center;
    margin: 0 0 clamp(20px, 3vw, 36px) 0;
}

.group-about-me {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 32px);
}

.about-card {
    flex: 1 1 400px;
    min-width: min(400px, 100%);
    max-width: 700px;
    width: 100%;
    background-color: var(--gray-10); /* #F7F7F7 */
    border-radius: 16px;
    padding: clamp(20px, 3vw, 32px) clamp(16px, 2.5vw, 28px);
    display: flex;
    flex-direction: column;
}

#back, #exp {
    transform: scale(0);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

#back.visible, #exp.visible {
    transform: scale(1);
    opacity: 1;
}

.card-pill-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.card-pill {
    background-color: #C7C7C7; /* var(--gray-40) */
    color: var(--text);
    padding: clamp(4px, 0.6vw, 6px) clamp(16px, 2vw, 26px);
    border-radius: 20px;
    display: inline-block;
}

.about-card-text p {
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.about-card-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Featured Projects Section: Group projects
   ========================================================================== */

.group-projects {
    width: 100%;
    background-color: var(--cream-main); /* #F5F5EE */
    padding: 80px 20px;
}

.projects-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.projects-container .section-title {
    color: #5E4CE0;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

#rgp {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 1200px;
    min-width: min(340px, 100%);
    margin: 0 auto 40px auto;
    gap: 20px;
    padding: 12px 20px 28px 20px;
    scroll-padding: 0 20px;
    cursor: grab;
    user-select: none;
}

#rgp.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

#rgp::-webkit-scrollbar {
    display: none;
}

#rgp .project-card {
    flex: 0 0 320px;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

#rgp .project-card:first-child {
    scroll-snap-align: start;
}

#rgp .project-card:last-child {
    scroll-snap-align: end;
}

#tools, .tech-tags, .project-tools-wrapper, .tools-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#tools::-webkit-scrollbar, .tech-tags::-webkit-scrollbar, .project-tools-wrapper::-webkit-scrollbar, .tools-list::-webkit-scrollbar {
    display: none;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--gray-30);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.project-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card-header {
    padding: 14px 4px 6px 4px;
}

.project-card-title {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--text);
    margin: 0;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-meta {
    padding: 4px 4px 14px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card-tool-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.project-card-tool-wrapper::-webkit-scrollbar {
    display: none;
}

.tools-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    flex-shrink: 0;
}

.tools-list {
    display: flex;
    align-items: baseline;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tools-list::-webkit-scrollbar {
    display: none;
}

.tool-item {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
    white-space: nowrap;
}

.project-card-actions {
    padding: 0 4px 4px 4px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card-actions .btn-view-details,
.project-card-actions .btn-filled-light-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: var(--text); /* #1A1A1A */
    color: var(--primary-contrast); /* #FFFFFF */
    font-family: var(--font-body); /* Oswald */
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 200ms ease;
}

.project-card-actions .btn-view-details:hover,
.project-card-actions .btn-filled-light-primary:hover {
    opacity: 0.8;
}

.project-card-actions .btn-visit-website,
.project-card-actions .btn-cyan {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: var(--cyan); /* #31bfd8 */
    color: var(--primary-contrast); /* #FFFFFF */
    font-family: var(--font-body); /* Oswald */
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 200ms ease;
}

.project-card-actions .btn-visit-website:hover:not(:disabled),
.project-card-actions .btn-cyan:hover:not(:disabled) {
    opacity: 0.8;
}

.project-card-actions .btn-visit-website:disabled,
.project-card-actions .btn-visit-website.disabled,
.project-card-actions .btn-cyan:disabled,
.project-card-actions .btn-cyan.disabled {
    opacity: 0.2 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.btn-outline-cyan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

.btn-outline-cyan:hover {
    background-color: var(--cyan);
    color: var(--primary-contrast);
}

.view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* ==========================================================================
   Contact Section: Group contact-section
   ========================================================================== */

.group-contact-section {
    width: 100%;
    background-color: var(--gray-10);
    padding: 80px 20px;
}

.contact-content-wrapper {
    max-width: 672px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--gray-30);
    border-radius: 16px;
    padding: 48px;
}

.contact-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-heading {
    margin-bottom: 12px;
}

.contact-description {
    color: var(--gray-70);
    line-height: 1.5;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    color: var(--text);
}

.input-field, .textarea-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-30);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background-color: var(--surface);
    outline: none;
    transition: border-color 200ms ease;
}

.input-field:focus, .textarea-field:focus {
    border-color: var(--primary);
}

.textarea-field {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* ==========================================================================
   Floating Group B (Quick Contact / Upwork trigger)
   ========================================================================== */

.floating-group-b {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.floating-upwork-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--text); /* #1A1A1A */
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    padding: 11px 40px;
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    animation: upworkPulseFloat 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: transform 220ms ease, box-shadow 220ms ease, opacity 200ms ease;
}

.floating-upwork-btn i {
    font-size: 18px;
    color: #FFFFFF; /* Pure white Upwork logo with no background */
    background: transparent;
}

/* Light shimmer reflection across button surface */
.floating-upwork-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: skewX(-20deg);
    animation: upworkShimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}

.floating-upwork-btn:hover {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(26, 26, 26, 0.25);
    animation-play-state: paused;
}

.floating-upwork-btn:hover::before {
    animation-play-state: paused;
}

/* Floating bob & expanding radar pulse */
@keyframes upworkPulseFloat {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(26, 26, 26, 0.45);
    }
    35% {
        transform: translateY(-6px) scale(1.04);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35), 0 0 0 12px rgba(26, 26, 26, 0);
    }
    65% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(26, 26, 26, 0);
    }
    78% {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(26, 26, 26, 0);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(26, 26, 26, 0);
    }
}

/* Continuous light reflection sheen */
@keyframes upworkShimmer {
    0%, 30% {
        left: -120%;
    }
    65%, 100% {
        left: 170%;
    }
}

/* ==========================================================================
   Toast Notification (Top Center Feedback)
   ========================================================================== */

.toast-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-24px) scale(0.95);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: var(--font-inter), sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 280ms ease, transform 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 280ms;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    cursor: pointer;
}

.toast-notification .toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Success Toast - Fresh Emerald Green */
.toast-notification.toast-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 10px 25px -4px rgba(5, 150, 105, 0.45), 0 6px 12px -4px rgba(5, 150, 105, 0.3);
}

/* Info Toast - Brand Deep Blue */
.toast-notification.toast-info {
    background: linear-gradient(135deg, #2563EB 0%, #0C29AB 100%);
    box-shadow: 0 10px 25px -4px rgba(12, 41, 171, 0.45), 0 6px 12px -4px rgba(12, 41, 171, 0.3);
}

/* Error Toast - Coral Red */
.toast-notification.toast-error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 10px 25px -4px rgba(220, 38, 38, 0.45), 0 6px 12px -4px rgba(220, 38, 38, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    .floating-upwork-btn,
    .floating-upwork-btn::before {
        animation: none;
    }
    .toast-notification {
        transition: opacity 150ms ease;
    }
}

/* ==========================================================================
   Projects Page (projects.html) Layout & Card Styles
   ========================================================================== */

.projects-page {
    background-color: var(--gray-10); /* #F7F7F7 */
    min-height: 100vh;
}

.projects-main-wrapper {
    width: 100%;
    padding: 85px 24px 80px; /* 85px top accounts for fixed floating header */
}

.projects-page-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    row-gap: 32px;
}

.projects-page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    row-gap: 12px;
}

.projects-page-title {
    font-family: var(--font-heading); /* Oswald */
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text); /* #1A1A1A */
    margin: 0;
}

.projects-page-subtitle {
    font-family: var(--font-heading); /* Oswald */
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--gray-70); /* #525252 */
    max-width: 680px;
    margin: 0 auto;
}

/* Category Filter Bar */
.projects-filter-bar {
    display: flex;
    justify-content: center;
    width: 100%;
}

.filter-pill-container {
    background-color: var(--surface); /* #FFFFFF */
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-label {
    font-family: var(--font-heading); /* Oswald */
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text); /* #1A1A1A */
    white-space: nowrap;
}

.filter-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gray-30); /* #E6E6E6 */
    border-radius: 10px;
    background-color: var(--surface);
    height: 32px;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    background: transparent;
    height: 100%;
    min-width: 150px;
    padding: 0 32px 0 12px;
    font-family: var(--font-heading); /* Oswald */
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--primary);
}

.select-chevron {
    position: absolute;
    right: 12px;
    pointer-events: none;
    font-size: 11px;
    color: var(--gray-50);
}

/* 2-Column Responsive Grid */
.projects-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .projects-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Project Card on Projects Page */
.project-page-card {
    background-color: var(--surface); /* #FFFFFF */
    border: 1px solid #DADCE2;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 12px;
    min-height: 400px;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.project-page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Card Image */
.card-image-box {
    width: 100%;
}

.card-image-aspect {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 16:9 ~ 1.66 aspect ratio */
    border: 3px solid var(--text); /* #1A1A1A */
    border-radius: 8px;
    overflow: hidden;
    background-color: #F0F0F0;
}

.card-image-aspect img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

/* Card Title */
.card-title-box {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    display: flex;
    align-items: center;
}

.card-title {
    font-family: var(--font-heading); /* Oswald */
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta Rows (Tools and APIs) */
.card-meta-box {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    height: 30px;
    overflow: hidden;
}

.card-meta-row .meta-label {
    font-family: var(--font-heading); /* Oswald */
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
    flex-shrink: 0;
}

.meta-pills-list {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.meta-pills-list::-webkit-scrollbar {
    display: none;
}

.meta-pill {
    background-color: var(--light-purple); /* #EDEFFF */
    color: var(--text);
    font-family: var(--font-heading); /* Oswald */
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 20px;
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Card Actions */
.card-actions-box {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    margin-top: auto;
}

.btn-card-details {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 7px 14px;
    border-radius: 50px;
    background-color: var(--text); /* #1A1A1A */
    color: var(--primary-contrast); /* #FFFFFF */
    font-family: var(--font-heading); /* Oswald */
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 200ms ease;
}

.btn-card-details:hover {
    background-color: var(--gray-70);
}

.btn-card-website {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 30px;
    background-color: rgba(49, 191, 216, 0.9); /* Cyan */
    color: var(--primary-contrast); /* #FFFFFF */
    font-family: var(--font-heading); /* Oswald */
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 200ms ease;
}

.btn-card-website:hover:not(.is-disabled) {
    opacity: 0.85;
}

.btn-card-website.is-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

/* ==========================================================================
   Project Details Page (details.html) Styles
   ========================================================================== */

.details-page {
    background-color: var(--gray-10); /* #F7F7F7 */
    min-height: 100vh;
}

.details-main-wrapper {
    width: 100%;
    padding: 85px 24px 80px; /* 85px top accounts for fixed floating header */
}

.details-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.details-card {
    background-color: var(--surface); /* #FFFFFF */
    border: 1px solid #DADCE2;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

@media (max-width: 600px) {
    .details-main-wrapper {
        padding: 75px 12px 60px;
    }
    .details-card {
        padding: 16px 12px;
        row-gap: 16px;
    }
}

/* Horizontal Screenshots Carousel */
.details-images-carousel {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 6px 12px 4px;
    scroll-padding: 0 6px;
    cursor: grab;
    user-select: none;
}

.details-images-carousel.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

.details-images-carousel::-webkit-scrollbar {
    display: none;
}

.details-image-item {
    flex-shrink: 0;
    width: 440px;
    max-width: 85vw;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.details-image-item:first-child {
    scroll-snap-align: start;
}

.details-image-item:last-child {
    scroll-snap-align: end;
}

@media (max-width: 480px) {
    .details-image-item {
        width: 300px;
        max-width: 85vw;
    }
}

.details-image-aspect {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 16:9 ~ 1.66 aspect ratio */
    border: 3px solid var(--text); /* #1A1A1A */
    border-radius: 20px;
    overflow: hidden;
    background-color: #F0F0F0;
}

.details-image-aspect img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
    display: block;
}

/* Details Title */
.details-title {
    font-family: var(--font-heading); /* Oswald */
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text); /* #1A1A1A */
    margin: 0;
}

/* Details Description */
.details-description {
    font-family: var(--font-heading); /* Oswald */
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
    max-width: 1000px;
    white-space: pre-wrap;
}

/* Details Meta Box */
.details-meta-box {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.details-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}

.details-meta-row .meta-label {
    font-family: var(--font-heading); /* Oswald */
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
    flex-shrink: 0;
}

/* Details Actions Box */
.details-actions-box {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 4px;
}

.btn-details-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px 20px;
    border-radius: 50px;
    background-color: var(--text); /* #1A1A1A */
    color: var(--primary-contrast); /* #FFFFFF */
    font-family: var(--font-heading); /* Oswald */
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 200ms ease;
}

.btn-details-back:hover {
    background-color: var(--gray-70);
}

.btn-details-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 22px;
    border-radius: 30px;
    background-color: rgba(49, 191, 216, 0.9); /* Cyan */
    color: var(--primary-contrast); /* #FFFFFF */
    font-family: var(--font-heading); /* Oswald */
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 200ms ease;
}

.btn-details-website:hover:not(.is-disabled) {
    opacity: 0.85;
}

.btn-details-website.is-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}
