/* Landing Page Styles - Inspired by landingpage_example.html */

:root {
    font-size: 13px;
    --primary-color: #f8f9fa;
    --secondary-color: #6c757d;
    --tertiary-color: #d3e2ed;
    --accent-color: #007AFF;
    --dark-color: #212e3b;
    --darker-color: #1e2a36;
    --gray-color: #4B5563;
    --light-gray: #F9FAFB;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(90deg, color-mix(in srgb, #1f8bff 100%, transparent), color-mix(in srgb, #0067d5 100%, transparent));
    --gradient-primary-soft: linear-gradient(90deg, color-mix(in srgb, #007AFF 6%, transparent), color-mix(in srgb, #007AFF 7%, transparent));
    --gradient-primary-soft-2: linear-gradient(180deg, color-mix(in srgb, #007AFF 0%, transparent), color-mix(in srgb, #007AFF 5%, transparent));
    --gradient-secondary: linear-gradient(180deg, rgba(1, 161, 255, 0.06) 0%, rgba(1, 161, 255, 0) 100%);
    --shadow-sm: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.05);
    --shadow-md: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 0 1.25rem rgba(0, 0, 0, 0.10);
    --border-radius: 1.75rem;
    --border-radius-sm: 1.25rem;
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-hero: 3.25rem;
    --font-size-section: 2.625rem;
    --font-size-card: 2rem;
    --font-size-body: 1.35rem;
    --line-height-hero: 4.25rem;
    --line-height-section: 3.5rem;
    --line-height-card: 2.125rem;
    --line-height-body: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--white);
    overflow-x: hidden;
}

/* Typography following example design */
.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700 !important;
    line-height: var(--line-height-hero);
    text-align: center;
    color: var(--dark-color) !important;
    max-width: 65rem;
    margin: auto;
}

.hero-subtitle {
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    text-align: center;
    color: var(--dark-color) !important;
    margin: auto;
    margin-top: 2rem;
}

.section-title {
    font-size: var(--font-size-section);
    font-weight: 700;
    line-height: var(--line-height-section);
    text-align: center;
    color: var(--dark-color) !important;
}

.section-subtitle {
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    text-align: center;
    color: var(--dark-color) !important;
    margin: auto;
    margin-top: 1rem;
    max-width: 35rem;
}

.card-title {
    font-size: var(--font-size-card);
    font-weight: 700;
    line-height: var(--line-height-card);
    color: var(--dark-color) !important;
}

.card-description {
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--gray-color);
}

/* Gradient text styling */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--accent-color); /* Fallback */
    animation: gentle-twinkle 4s ease-in-out infinite;
}

/* Button styles following example design */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2rem !important;
    border-radius: var(--border-radius-sm);
    color: var(--white);
    font-size: var(--font-size-body) !important;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    /* line-height: 0; */
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 3.7rem !important; /* Minimum touch target size */
    min-width: 120px;
    text-align: center;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

@media (hover: none), (pointer: coarse), (max-width: 992px) {
    .btn-primary-custom:hover, .btn-primary-custom:focus {
        outline: none !important;
        transform: translateY(0) !important;
        background: var(--gradient-primary) !important;
        background-color: var(--gradient-primary) !important;
        border: none !important;
        color: white !important;
    }
}

/* Hover states for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .btn-primary-custom:hover {
        transform: translateY(-0.125rem) scale(1.01);
        box-shadow: var(--shadow-lg);
        color: var(--white);
    }

    .btn-primary-custom:hover::before {
        left: 100%;
    }
}

/* Active states for all devices */
.btn-primary-custom:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
    transition-duration: 0.1s;
}

/* Focus states for accessibility */
.btn-primary-custom:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* White version of primary button */
.btn-primary-custom-white {
    background: var(--white);
    border: none;
    padding: 1.25rem 2rem;
    border-radius: var(--border-radius-sm);
    color: var(--accent-color);
    font-size: var(--font-size-body);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01875rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* Minimum touch target size */
    min-width: 33rem;
    text-align: center;
}

.btn-primary-custom-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.5s ease;
}

/* Hover states for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .btn-primary-custom-white:hover {
        transform: translateY(-0.125rem) scale(1.01);
        box-shadow: var(--shadow-lg);
        color: var(--accent-color);
        background: #f8faff;
    }

    .btn-primary-custom-white:hover::before {
        left: 100%;
    }
}

/* Active states for all devices */
.btn-primary-custom-white:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
    transition-duration: 0.1s;
}

/* Focus states for accessibility */
.btn-primary-custom-white:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn-outline-custom {
    border: 0.125rem solid var(--accent-color);
    padding: 1.0625rem 1.875rem;
    border-radius: var(--border-radius-sm);
    color: var(--accent-color);
    background: transparent;
    font-size: var(--font-size-body);
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01875rem;
    box-shadow: 0 0.1875rem 0.625rem rgba(0, 162, 255, 0.1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* Minimum touch target size */
    min-width: 120px;
    text-align: center;
}

.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 0.03), transparent);
    transition: left 0.5s ease;
}

/* Hover states for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .btn-outline-custom:hover {
        background: var(--accent-color);
        color: var(--white);
        transform: translateY(-0.125rem) scale(1.01);
        box-shadow: 0 0.5rem 1.5625rem rgba(0, 162, 255, 0.25);
    }

    .btn-outline-custom:hover::before {
        left: 100%;
    }
}

/* Active states for all devices */
.btn-outline-custom:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 0.1875rem 0.625rem rgba(0, 162, 255, 0.15);
    transition-duration: 0.1s;
}

/* Focus states for accessibility */
.btn-outline-custom:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0.5rem 1.5625rem rgba(0, 162, 255, 0.25), 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Hero section styling */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-primary-soft-2);
    min-height: calc(100vh - 5rem);
    overflow: hidden;
}

/* .hero-section .container {
    max-height: 70vh;
    padding: 10rem 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
} */

/* Floating Mock Portfolios */
.hero-section .hero-decorator {
    position: absolute;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    z-index: 1;
    opacity: 0.95;
    pointer-events: none;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

/* Desktop size (default) - decorators 1 and 4 */
.hero-section .hero-decorator-1,
.hero-section .hero-decorator-4 {
    width: 16rem;
    height: 16rem;
    border-radius: 16px;
}

/* Tablet size - decorators 2 and 5 */
.hero-section .hero-decorator-2,
.hero-section .hero-decorator-5 {
    width: 12rem;
    height: 14rem;
    border-radius: 14px;
}

/* Mobile size - decorators 3 and 6 */
.hero-section .hero-decorator-3,
.hero-section .hero-decorator-6 {
    width: 8rem;
    height: 16rem;
    border-radius: 12px;
}

.floating-mock-portfolio {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.floating-mock-browser-bar {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;
    display: none;
}

/* Tablet size adjustments */
.hero-decorator-2 .floating-mock-browser-bar,
.hero-decorator-5 .floating-mock-browser-bar {
    padding: 0.6rem 0.8rem;
    border-bottom: 1.5px solid #e0e0e0;
    display: none;
}

/* Mobile size adjustments - hide browser bar, show notch */
.hero-decorator-3 .floating-mock-browser-bar,
.hero-decorator-6 .floating-mock-browser-bar {
    display: none;
}

/* Mobile notch for decorator-3 and decorator-6 */
.hero-decorator-3 .floating-mock-portfolio::before,
.hero-decorator-6 .floating-mock-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1.5rem;
    background: #f5f5f5;
    border-radius: 0 0 1rem 1rem;
    z-index: 10;
    display: none;
}

.hero-decorator-3 .floating-mock-portfolio::after,
.hero-decorator-6 .floating-mock-portfolio::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 0.3rem;
    background: var(--text-color);
    border-radius: 2px;
    z-index: 11;
    display: none;
}

.floating-mock-dots {
    display: flex;
    gap: 0.5rem;
}

/* Tablet dots */
.hero-decorator-2 .floating-mock-dots,
.hero-decorator-5 .floating-mock-dots {
    gap: 0.4rem;
}

.floating-mock-dots span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #ddd;
}

/* Tablet dots size */
.hero-decorator-2 .floating-mock-dots span,
.hero-decorator-5 .floating-mock-dots span {
    width: 0.6rem;
    height: 0.6rem;
}

.floating-mock-dots span:nth-child(1) { background: #ff5f57; }
.floating-mock-dots span:nth-child(2) { background: #ffbd2e; }
.floating-mock-dots span:nth-child(3) { background: #28ca42; }

.floating-mock-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Tablet header adjustments */
.hero-decorator-2 .floating-mock-header,
.hero-decorator-5 .floating-mock-header {
    padding: 0.8rem;
    gap: 0.8rem;
}

/* Mobile header adjustments */
.hero-decorator-3 .floating-mock-header,
.hero-decorator-6 .floating-mock-header {
    padding: 1.2rem 1rem;
    gap: 0.8rem;
}

.floating-mock-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Tablet avatar */
.hero-decorator-2 .floating-mock-avatar,
.hero-decorator-5 .floating-mock-avatar {
    width: 2.4rem;
    height: 2.4rem;
}

/* Mobile avatar */
.hero-decorator-3 .floating-mock-avatar,
.hero-decorator-6 .floating-mock-avatar {
    width: 1.8rem;
    height: 1.8rem;
}

.floating-mock-text-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

/* Tablet text lines */
.hero-decorator-2 .floating-mock-text-lines,
.hero-decorator-5 .floating-mock-text-lines {
    gap: 0.4rem;
}

/* Mobile text lines */
.hero-decorator-3 .floating-mock-text-lines,
.hero-decorator-6 .floating-mock-text-lines {
    gap: 0.3rem;
}

.floating-mock-line {
    height: 0.75rem;
    border-radius: 4px;
}

/* Tablet lines */
.hero-decorator-2 .floating-mock-line,
.hero-decorator-5 .floating-mock-line {
    height: 0.6rem;
    border-radius: 3px;
}

/* Mobile lines */
.hero-decorator-3 .floating-mock-line,
.hero-decorator-6 .floating-mock-line {
    height: 0.5rem;
    border-radius: 2px;
}

.floating-mock-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--white);
    min-height: 0; /* Allow flex children to shrink */
}

/* Tablet size content adjustments */
.hero-decorator-2 .floating-mock-content,
.hero-decorator-5 .floating-mock-content {
    padding: 0.8rem;
    gap: 0.6rem;
}

/* Mobile size content adjustments */
.hero-decorator-3 .floating-mock-content,
.hero-decorator-6 .floating-mock-content {
    padding: 0.6rem;
    padding-top: .6rem;
    gap: 0.5rem;
}

.floating-mock-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Tablet buttons */
.hero-decorator-2 .floating-mock-buttons,
.hero-decorator-5 .floating-mock-buttons {
    gap: 0.6rem;
}

/* Mobile buttons */
.hero-decorator-3 .floating-mock-buttons,
.hero-decorator-6 .floating-mock-buttons {
    gap: 0.5rem;
}

.floating-mock-button {
    height: 1.75rem;
    flex: 1;
    background: #f0f0f0;
    border-radius: 8px;
}

/* Tablet button */
.hero-decorator-2 .floating-mock-button,
.hero-decorator-5 .floating-mock-button {
    height: 1.4rem;
    border-radius: 6px;
}

/* Mobile button */
.hero-decorator-3 .floating-mock-button,
.hero-decorator-6 .floating-mock-button {
    height: 1rem;
    border-radius: 4px;
}

.floating-mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
}

/* Tablet grid */
.hero-decorator-2 .floating-mock-grid,
.hero-decorator-5 .floating-mock-grid {
    gap: 0.6rem;
}

/* Mobile grid - one column */
.hero-decorator-3 .floating-mock-grid,
.hero-decorator-6 .floating-mock-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: .1rem;
}

.floating-mock-card {
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

/* Tablet card */
.hero-decorator-2 .floating-mock-card,
.hero-decorator-5 .floating-mock-card {
    border-radius: 6px;
}

/* Mobile card */
.hero-decorator-3 .floating-mock-card,
.hero-decorator-6 .floating-mock-card {
    border-radius: 4px;
}

/* Project Grid Styles for Floating Mocks */
.floating-mock-page-title {
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

/* Tablet page title */
.hero-decorator-2 .floating-mock-page-title,
.hero-decorator-5 .floating-mock-page-title {
    margin-bottom: 0.6rem;
}

/* Mobile page title */
.hero-decorator-3 .floating-mock-page-title,
.hero-decorator-6 .floating-mock-page-title {
    margin-bottom: 0.5rem;
}

.floating-mock-project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
}

/* Tablet project grid */
.hero-decorator-2 .floating-mock-project-grid,
.hero-decorator-5 .floating-mock-project-grid {
    gap: 0.6rem;
}

/* Mobile project grid - one column */
.hero-decorator-3 .floating-mock-project-grid,
.hero-decorator-6 .floating-mock-project-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.floating-mock-project-card {
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

/* Tablet project card */
.hero-decorator-2 .floating-mock-project-card,
.hero-decorator-5 .floating-mock-project-card {
    border-radius: 6px;
    aspect-ratio: 1 / 1;
}

/* Mobile project card */
.hero-decorator-3 .floating-mock-project-card,
.hero-decorator-6 .floating-mock-project-card {
    border-radius: 4px;
}

/* Project Detail Styles for Floating Mocks */
.floating-mock-detail-hero {
    width: 100%;
    height: 6rem;
    margin-top: .25em;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Tablet detail hero */
.hero-decorator-2 .floating-mock-detail-hero,
.hero-decorator-5 .floating-mock-detail-hero {
    height: 3.2rem;
    border-radius: 6px;
}

/* Mobile detail hero */
.hero-decorator-3 .floating-mock-detail-hero,
.hero-decorator-6 .floating-mock-detail-hero {
    height: 2.4rem;
    border-radius: 4px;
}

.floating-mock-detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
    margin: 0.75rem 0;
}

/* Tablet detail content */
.hero-decorator-2 .floating-mock-detail-content,
.hero-decorator-5 .floating-mock-detail-content {
    gap: 0.4rem;
    margin: 0.6rem 0;
}

/* Mobile detail content */
.hero-decorator-3 .floating-mock-detail-content,
.hero-decorator-6 .floating-mock-detail-content {
    gap: 0.3rem;
    margin: 0.5rem 0;
}

.floating-mock-detail-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
}

/* Tablet detail images */
.hero-decorator-2 .floating-mock-detail-images,
.hero-decorator-5 .floating-mock-detail-images {
    gap: 0.6rem;
}

/* Mobile detail images - one column */
.hero-decorator-3 .floating-mock-detail-images,
.hero-decorator-6 .floating-mock-detail-images {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.floating-mock-detail-img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

/* Tablet detail img */
.hero-decorator-2 .floating-mock-detail-img,
.hero-decorator-5 .floating-mock-detail-img {
    border-radius: 6px;
}

/* Mobile detail img */
.hero-decorator-3 .floating-mock-detail-img,
.hero-decorator-6 .floating-mock-detail-img {
    border-radius: 4px;
}

/* Floating portfolio animations and positioning remain the same */

/* Left side decorators */
.hero-section .hero-decorator-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.hero-section .hero-decorator-6 {
    top: 45%;
    left: 5%;
    animation-delay: 2s;
    display: none;
}

.hero-section .hero-decorator-2 {
    bottom: 8%;
    left: 9%;
    animation-delay: 4s;
}

.hero-section .hero-decorator-3 {
    top: 7%;
    right: 11%;
    animation-delay: 5s;
}

/* Right side decorators */
.hero-section .hero-decorator-5 {
    top: 10%;
    right: 10%;
    animation-delay: 1s;
    display: none;
}

.hero-section .hero-decorator-4 {
    bottom: 12%;
    right: 7%;
    animation-delay: 3s;
}



/* Hero section styling */
.hero-section .container .row {
    align-items: center;
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 100px);
}

.hero-section .container {
    position: relative;
    z-index: 10;
}

@media (max-width: 992px) {
    .hero-section {
        max-height: unset;
    }
}

/* Username input styling */
.username-input-container {
    max-width: 34.375rem;
    margin: 3rem auto 2rem auto;
    padding: 0 1rem;
    position: relative;
}

.input-group {
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.input-group-text {
    font-weight: 500;
    color: #6b7280;
    background: var(--white);
    border: none;
    font-size: var(--font-size-body);
    padding: 1.25rem 1.5rem;
}

.form-control {
    border: none;
    font-size: var(--font-size-body);
    padding: 1.25rem 1.5rem;
    background: var(--white);
    min-height: 44px; /* Minimum touch target size */
    touch-action: manipulation;
}

.form-control:focus {
    border: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    background: var(--white);
    outline: none;
}

/* Username input slide animation */
.username-input-slide {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-0.625rem);
    transition: all 0.3s ease;
}

.username-input-slide.slide-down {
    opacity: 1;
    transform: translateY(0);
}

/* CTA section improvements */
.cta-section {
    margin-top: 3rem;
}

.cta-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 4.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-sm);
    min-height: 5rem;
    /* max-width: 500px; */
    margin-left: auto;
    margin-right: auto;
}

.cta-trust-indicator {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* User avatars styling */
.user-avatars {
    display: flex;
    align-items: center;
    gap: -1.25rem; /* Negative gap for overlapping effect */
}

.user-avatar-link {
    display: inline-block;
    margin-left: -1.25rem;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px; /* Minimum touch target size */
    min-height: 44px;
    border-radius: 50%;
}

.user-avatar-link:first-child {
    margin-left: 0;
}

/* Hover effects only for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .user-avatar-link:hover {
        transform: translateY(-0.125rem) scale(1.1);
        z-index: 10;
    }
}

/* Active state for all devices */
.user-avatar-link:active {
    transform: translateY(0) scale(1.05);
    transition-duration: 0.1s;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 0.1875rem solid var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* For direct user-avatar elements (not wrapped in links) */
.user-avatars > .user-avatar {
    margin-left: -1.25rem;
}

.user-avatars > .user-avatar:first-child {
    margin-left: 0;
}

/* Hover effects only for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .user-avatars > .user-avatar:hover {
        transform: translateY(-0.125rem) scale(1.1);
        z-index: 10;
    }
}

/* Active state for all devices */
.user-avatars > .user-avatar:active {
    transform: translateY(0) scale(1.05);
    transition-duration: 0.1s;
}

.user-avatar.more-users {
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Hover effects only for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .user-avatar.more-users:hover {
        background: var(--accent-color);
    }
}

/* Active state for all devices */
.user-avatar.more-users:active {
    background: var(--accent-color);
    transform: scale(0.95);
    transition-duration: 0.1s;
}

.cta-trust-indicator i {
    color: var(--accent-color);
}

/* Features section */
.features-section {
    padding: 8rem 4rem;
    background: var(--gradient-primary-soft);
    position: relative;
    scroll-margin: 3rem;
    margin: 5rem auto;
    border-radius: var(--border-radius);
    max-width: 1600px;
    /* color: var(--white); */
}

/* .showcase-section {
    margin: 5rem;
    border-radius: var(--border-radius);
} */

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem 2rem;
    padding-bottom: 0.5rem;
    text-align: left;
    transition: all 0.3s ease !important;
    height: 100%;
    border: none;
    margin-bottom: 1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.feature-card:focus, .audience-card:focus {
    outline: none;
}

/* Hover effects only for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .feature-card:hover {
        transform: translateY(-0.25rem) !important;
        box-shadow: var(--shadow-md) !important;
    }
}

/* Active state for all devices */
.feature-card:active {
    transform: translateY(-0.125rem);
    transition-duration: 0.1s;
}

/* Focus state for accessibility */
/* .feature-card:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
} */

.feature-icon {
    width: 5rem;
    height: 5rem;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Icon colors matching the example */
.icon-blue { background: color-mix(in srgb, var(--accent-color) 10%, transparent); }
.icon-blue i { color: var(--accent-color); }
.icon-brown { background: #7B5200; }
.icon-green { background: #5BC17F; }
.icon-orange { background: #E89A3E; }
.icon-yellow { background: #FFC348; }
.icon-cyan { background: #00A2FF; }

/* Problem section */
.problem-section {
    padding-top: 5rem;
    /* background: var(--gradient-secondary); */
    color: var(--white);
    position: relative;
}

/* .problem-section .section-title,
.problem-section .section-subtitle {
    color: var(--white);
} */

.problem-card {
    background: #ffebee; /* Light red background */
    border-radius: 1.875rem;
    padding: 2rem;
    text-align: left;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    outline: none;
    /* box-shadow: 0 0.25rem 0.75rem rgba(244, 67, 54, 0.15); */
    border: 0.125rem solid #ffebee; /* Slightly darker red border */
    position: relative;
    color: #FF5D5D; /* Red text color */
}

.pricing-reward {
    max-width: 1000px;
    margin: auto;
}

.pricing-reward > div {
    max-width: 500px;
    margin: 0 auto;
}

@media (hover: none), (pointer: coarse), (max-width: 992px) {
    .problem-card:hover, .problem-card:focus {
        outline: none;
        transform: translateY(0);
        background: #ffebee; /* Slightly darker red on hover */
    }
    .feature-card:hover, .feature-card:focus {
        outline: none;
        transform: translateY(0);
    }

    .audience-card {
        margin: 0 1rem;
        padding-top: 2rem !important;
    }

    .feature-highlight {
        margin: 0 1rem;
    }

    .audience-card:hover, .audience-card:focus {
        outline: none;
        transform: translateY(0);
    }

    .pricing-reward {
        border-radius: 0 !important;
        margin: 0 -1rem !important;
        padding-top: 0 !important;
        margin-top: -4rem !important;
        border: none !important;
        box-shadow: none !important;
    }
    .pricing-reward h3, .pricing-reward p {
        text-align: center !important;
    }
}



.problem-card .card-title {
    font-weight: 500;
    color: #FF5D5D !important; /* Red text color */
}

/* Text balloon tail/pointer */
.problem-card::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 3rem;
    width: 0;
    height: 0;
    border-left: 1rem solid transparent;
    border-right: 1rem solid transparent;
    border-top: 1rem solid #ffebee;
}

@media (hover: hover), (pointer: fine), (min-width: 992px) {
    .problem-card:hover {
        transform: translateY(-0.25rem);
        background: #ffebee; /* Slightly darker red on hover */
    }
}



.problem-icon {
    width: 3rem;
    height: 3rem;
    background: none; /* Red background for icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    
}

.problem-icon i {
    font-size: 2.5rem;
    color: #fd6d6d;
}

.showcase-texts {
    max-width: 500px; min-width: 400px; margin-left: 200px;
    gap: 2rem;
    display: flex; flex-direction: column; align-items: flex-start;
}

.showcase-icon {
    width: 89px; height: 89px; background: rgba(255,255,255,0.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 30px; flex-shrink: 0;
}

@media (max-width: 992px) {
    .showcase-texts {
        max-width: 100vw; min-width: unset; margin-left: unset;
        padding-top: 6rem;
    }

    .showcase-icon {
        display: none;
    }
}

/* Audience section */
.audience-section {
    padding: 7rem 0;
    padding-top: 3rem;
    background: var(--white);
}


/* Decorative dots for audience section - different from hero since background is white */
.audience-section .hero-decorator-audience-1,
.audience-section .hero-decorator-audience-2 {
    background: var(--white) !important;
    box-shadow: var(--shadow-lg) !important;
    animation: float 6s ease-in-out infinite;
}

.audience-section .hero-decorator-audience-1 i {
    color: #E89A3E !important; /* Orange */
}

.audience-section .hero-decorator-audience-2 i {
    color: #5BC17F !important; /* Green */
}

.audience-card {
    background: var(--white);
    border: 0.0625rem solid #E4E4E4;
    border-radius: var(--border-radius);
    padding: 3rem 3rem;
    padding-bottom: 2.5rem;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    /* cursor: pointer; */
    -webkit-tap-highlight-color: transparent;
    color: var(--dark-color) !important;
}

/* Hover effects only for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .audience-card:hover {
        transform: translateY(-0.25rem);
        box-shadow: var(--shadow-md);
    }
}

/* Active state for all devices */
.audience-card:active {
    transform: translateY(-0.125rem);
    transition-duration: 0.1s;
}

.audience-avatar {
    width: 5.5625rem;
    height: 5.5625rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    margin-right: 2rem;
    background-size: cover;
    background-position: center;
}

.audience-name {
    font-size: calc(var(--font-size-body) * 1.3);
    font-weight: 700;
    line-height: var(--line-height-body);
    margin-bottom: 0.4rem;
    text-align: left;
}

.audience-profession {
    font-size: calc(var(--font-size-body) * 1.1);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: left;
}

.audience-testimonial {
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--gray-color);
    margin-bottom: 0;
    font-style: italic;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.audience-testimonial:not(.expanded) {
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-height: calc(var(--line-height-body) * 3); /* Approximately 3 lines */
}

.audience-testimonial.expanded {
    display: block;
    max-height: 1000px; /* Large enough for any content */
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.testimonial-wrapper {
    margin-bottom: 1.5rem;
}

.testimonial-expand-btn {
    background: none;
    border: none;
    color: var(--gray-color);
    font-size: var(--font-size-body);
    font-weight: 600;
    font-style: italic;
    cursor: pointer;
    padding: 0;
    margin-left: 0;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    opacity: .75;
}

.testimonial-expand-btn:hover {
    transform: translateX(2px);
    opacity: 1;
    outline: none;
}

.testimonial-expand-btn:focus {
    outline: none;
}

.audience-link {
    color: var(--accent-color);
    font-size: calc(var(--font-size-body) * 1.05);
    font-weight: 500;
    text-decoration: none;
    text-align: left;
}

.audience-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: .5rem;
}

/* Portfolio showcase section */
.portfolio-section {
    padding: 6rem 0;
    background: var(--dark-color);
    color: var(--white);
}

.portfolio-section .section-title,
.portfolio-section .section-subtitle {
    color: var(--white);
}

/* Stats section */
.stats-section {
    padding: 4rem 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-body);
    color: var(--gray-color);
    margin-top: 0.5rem;
}

/* CTA section */
.cta-section {
    padding: 0 0;
    color: var(--white);
    text-align: center;
}

.cta-section .section-title,
.cta-section .section-subtitle {
    color: var(--white);
}

/* Footer styling */
.footer-section {
    background: var(--white);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

/* Decorative dots for footer section */
.hero-decorator-footer-1,
.hero-decorator-footer-2 {
    animation: float 6s ease-in-out infinite;
}

.hero-decorator-footer-1 {
    animation-delay: 1s;
}

.hero-decorator-footer-2 {
    animation-delay: 3s;
}

.footer-section a {
    color: #495057;
    text-decoration: none;
    font-size: var(--font-size-body);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

/* Floating elements for visual interest */
.floating-element {
    position: absolute;
    width: 5.375rem;
    height: 5.375rem;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 50%;
    z-index: 1;
}

/* Enhanced Responsive Design for All Devices */

/* Touch device optimizations */
@media (hover: none), (pointer: coarse), (max-width: 992px) {
    .audience-name {
        margin-bottom: 0;
    }
    /* Remove hover effects on touch devices */
    .btn-primary-custom-white:hover,
    .btn-outline-custom:hover,
    .feature-card:hover,
    .user-avatar-link:hover,
    .user-avatars > .user-avatar:hover,
    .user-avatar.more-users:hover,
    .audience-link:hover,
    .footer-section a:hover {
        transform: none !important;
        box-shadow: initial !important;
        background: initial !important;
        background-color: initial !important;
        color: initial !important;
        border-color: initial !important;
        text-decoration: initial !important;
        outline: none !important;
    }

    .feature-card:hover {
        background: var(--white) !important;
    }
    
    /* Reset specific hover effects */
    .btn-primary-custom:hover::before,
    .btn-primary-custom-white:hover::before,
    .btn-outline-custom:hover::before {
        left: -100% !important;
    }
    
    /* Larger touch targets for mobile */
    .btn-primary-custom,
    .btn-primary-custom-white,
    .btn-outline-custom {
        min-height: 48px;
        min-width: 120px;
        padding: 1.25rem 2rem;
    }
    
    .user-avatar-link,
    .user-avatar {
        min-width: 44px;
        min-height: 44px;
    }
}

.showcase-section {
    padding-bottom: 6rem !important;
}

@media (max-width: 992px) {
    :root {
        --font-size-hero: 3rem;
        --font-size-section: 2.125rem;
        --font-size-card: 2rem;
        --font-size-body: 1.2rem;
        --line-height-hero: 3.75rem;
        --line-height-section: 2.9rem;
        --line-height-card: 1.75rem;
        --line-height-body: 2rem;
    }
    .showcase-section {
        padding-bottom: 0 !important;
    }
    .feature-card,
    .audience-card {
        padding: 2.5rem 2rem;
    }
    
    .cta-stats {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1.25rem 2rem;
    }
    
    /* Center features-section text on tablet */
    .features-section .row.align-items-center > div > div {
        text-align: center !important;
    }
    
    .features-section .row.align-items-center h3,
    .features-section .row.align-items-center p {
        text-align: center !important;
    }
    
    /* Center feature icons on tablet */
    .features-section .feature-icon {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Standard desktop (1200px and up) */
@media (min-width: 1200px) {
    .cta-stats {
        margin-top: 0;
    }
}

/* Large desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    :root {
        --font-size-hero: 4.0rem;
        --line-height-hero: 4.75rem;
    }

    .cta-stats {
        margin-top: 0;
    }
}

/* Extra large screens (1600px and up) */
@media (min-width: 1600px) {
    .container {
        max-width: 1540px;
    }
    
    :root {
        --font-size-hero: 4rem;
        --line-height-hero: 5rem;
    }
    .cta-stats {
        margin-top: unset;
    }
}

@media (min-width: 1900px) {
    .hero-section .hero-decorator {
        transform: scale(1.5) !important;
    }
    .hero-section .hero-decorator-1 {
        top: 15%;
    }
    .hero-section .hero-decorator-2 {
        bottom: 19%;
    }
    .hero-section .hero-decorator-3 {
        top: 15%;
    }
    .hero-section .hero-decorator-4 {
        bottom: 17%;
    }
}

@media (min-width: 1600px) {
    .hero-section .hero-decorator {
        transform: scale(1.1) !important;
    }
    /* .hero-section .hero-decorator-1 {
        top: 15%;
    }
    .hero-section .hero-decorator-2 {
        bottom: 19%;
    }
    .hero-section .hero-decorator-3 {
        top: 15%;
    }
    .hero-section .hero-decorator-4 {
        bottom: 17%;
    } */
}

@media (min-width: 992px) and (max-width: 1250px) {
    .hero-section .hero-decorator {
        transform: scale(0.7) !important;
    }

    .hero-section .hero-decorator-1 {
        left: 0;
        top: 0;
    }
    .hero-section .hero-decorator-2 {
        left: 7%;
        bottom: 9%;
    }
    .hero-section .hero-decorator-3 {
        right: 5%;
        top: 0;
    }
    .hero-section .hero-decorator-4 {
        right: 0;
        bottom: 7%;
    }

}

/* Reposition floating decorators on tablet/mobile as a collage below hero */
@media (max-width: 992px) {

    .hero-section .floating-mock-portfolio-container {
        display: grid;
        grid-template-columns: repeat(2, .5fr);
        gap: 1rem;
        max-width: 100vw;
        margin: 7rem auto;
        margin-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Change hero section to allow decorators to flow below */
    .hero-section {
        padding-bottom: 0 !important;
    }
    
    .hero-section .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-section .container .row {
        min-height: 60vh;
        padding: 4rem 0;
    }
    
    /* Remove absolute positioning and make decorators flow in document */
    .hero-section .hero-decorator {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        animation: none !important;
        margin: 0;
        max-width: 45vw;
        display: block !important;
    }

    .hero-section .hero-decorator-1 {
        margin-top: auto;
        margin-left: auto;
        width: 200px;
    }

    .hero-section .hero-decorator-2 {
        margin-top: auto;
        margin-right: auto;
    }

    .hero-section .hero-decorator-3 {
        margin-left: auto;
        margin-bottom: auto;
    }

    .hero-section .hero-decorator-4 {
        margin-right: auto;
        margin-bottom: auto;
        width: 200px;
        max-height: 200px;
    }
    
    /* Ensure row with hero content comes first */
    .hero-section .row {
        order: 1;
        width: 100%;
    }
}

.cta-features i {
    font-size: 3rem;
}

/* Mobile-specific enhancements */
@media (max-width: 767px) {

    .audience-avatar {
        margin-right: 1.75rem;
    }

    .reward-section {
        padding: 2rem !important;
    }

    .cta-stats {
        min-height: 7rem;
    }

    .section-title, .hero-title {
        margin-left: auto;
        margin-right: auto;
        padding: 0 !important;
        max-width: 95vw;
    }
    
    .section-subtitle, .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 80vw !important;
    }

    /* Problem section */
    .problem-section {
        padding-top: 2rem;
        padding-bottom: 2rem;

    }

    .problem-section .row {
        margin: 0;
        margin-top: 1rem;
    }

    .problem-section .mb-5 {
        margin-bottom: .75rem !important;
    }

    .features-section {
        margin: unset;
        padding: 5rem 1rem;
        border-radius: 0;
    }

    .audience-section {
        padding-top: 7rem;
    }

    .feature-card,
    .audience-card {
        padding: 2rem 2rem;
        margin-bottom: 1.5rem;
        text-align: left !important;
    }

    .feature-icon {
        width: 4rem;
        height: 4rem;
    }

    .feature-icon {
        margin-left: 0;
        margin-top: 0.5rem;
        margin-bottom: 1.2rem;
        margin-right: 0;
    }

    .feature-icon i {
        font-size: 1.6rem;
    }

    .problem-icon {
        width: 2rem;
        height: 2rem;
    }

    .problem-icon i {
        font-size: 2rem;
    }

    .username-input-container {
        padding: 0 1rem;
        margin: 2rem auto 1rem auto;
    }
    
    .cta-stats {
        padding: 0.8rem 1.5rem;
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .cta-trust-indicator {
        font-size: 1rem;
    }

    .cta-features {
        gap: 1rem;
    }

    /* Stack CTA features on mobile */
    .cta-features > [class*="col-"] {
        width: 100% !important;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-features i {
        font-size: 2.75rem;
    }
    
    .user-avatar {
        width: 2rem;
        height: 2rem;
        margin-left: -0.375rem;
    }

    .user-avatar:first-child {
        margin-left: 0;
    }
    
    .user-avatar.more-users {
        font-size: 0.625rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Improve touch targets for mobile */
    .btn-primary-custom,
    .btn-primary-custom-white,
    .btn-outline-custom {
        min-height: 48px;
        padding: 1.25rem 2rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Stack buttons vertically on mobile */
    .cta-section .btn-primary-custom,
    .cta-section .btn-primary-custom-white,
    .cta-section .btn-outline-custom {
        display: block;
        width: 100%;
        margin: 0.5rem auto;
    }
    
    /* Ensure proper spacing in cards */
    .feature-card {
        text-align: center;
        height: auto;
    }
    
    .audience-card {
        text-align: center;
        height: auto;
        padding-bottom: 2.1rem !important;
    }
    
    /* Portfolio carousel improvements for mobile */
    .portfolio-mock-item {
        min-width: 280px !important;
        margin-right: 1rem;
    }
}

/* Extra small screens - Enhanced for better usability */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .btn-primary-custom,
    .btn-primary-custom-white,
    .btn-outline-custom {
        padding: 1.125rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }

    .input-group-text,
    .form-control {
        font-size: 1rem;
        padding: 1.125rem 1.25rem;
    }
    
    /* Ensure text is readable on smallest screens */
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem !important;
    }
    
    .section-title {
        margin-bottom: 1rem;
    }
    
    /* Better spacing for small screens */
    .hero-section {
        min-height: calc(100vh - 4rem);
        /* padding: 1.5rem 0; */
    }
    
    .feature-card,
    .audience-card {
        padding: 1.5rem 2rem;
        margin-bottom: 1rem;
    }

    .problem-card {
        padding: 1.5rem 1.5rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
        margin-bottom: 3rem;
    }
    
    /* Simplify decorative elements on very small screens */
    .hero-decorator {
        display: none !important;
    }
    
    /* Better form styling for small screens */
    .username-input-container {
        max-width: 100%;
        margin: 1.5rem auto 1rem auto;
        padding: 0 0.5rem;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    /* Improve readability of trust indicators */
    .cta-stats {
        padding: 0.75rem 1rem;
        margin-top: 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .user-avatars {
        justify-content: center;
    }
    
    .user-avatar {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-0.3125rem); 
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }
}

@keyframes gentle-twinkle {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.85;
        filter: brightness(1.1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(1.875rem);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Username feedback styling */
.username-feedback {
    font-size: 0.875rem;
    display: none;
    margin-top: 0.5rem;
}

.username-feedback.show {
    display: block;
}

.username-feedback.success {
    color: #10b981;
}

.username-feedback.error {
    color: #ef4444;
}

/* Portfolio gallery styling */
.portfolio-gallery {
    overflow: hidden;
    padding: 2rem 0;
}

.portfolio-scroll {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 2rem;
}

.portfolio-item {
    min-width: 18.75rem;
    height: 12.5rem;
    background: #D9D9D9;
    border-radius: 0.625rem;
    box-shadow: var(--shadow-md);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Additional utility classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

.rounded-custom-sm {
    border-radius: var(--border-radius-sm);
}

/* Info badges */
.info-badge {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2.5rem;
    padding: 1.0625rem 1.875rem;
    border: 0.1rem solid transparent !important;
    color: var(--white);
    font-size: var(--font-size-body);
    font-weight: 600;
    text-align: center;
    margin: 2rem auto;
    display: inline-block;
    max-width: 80vw;;
}

.info-badge-blue {
    background: rgba(0, 162, 255, 0.25);
    color: var(--white);
}

.info-badge-light {
    background: var(--gradient-primary-soft) !important;
    border: 0.1rem solid var(--secondary-color);
    color: var(--accent-color);
}

/* Orientation-specific optimizations */
@media screen and (orientation: landscape) and (max-height: 500px) {
    /* Landscape phone optimization */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.375rem !important;
        margin-bottom: 1rem;
    }
    
    .username-input-container {
        margin: 1rem auto;
    }
    
    .cta-stats {
        margin-top: 1rem;
        padding: 0.5rem 1rem;
    }
    
    /* Hide decorative elements in landscape to save space */
    .hero-decorator {
        display: none !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .user-avatar,
    .audience-avatar,
    .feature-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        animation: none;
    }
    
    .hero-decorator {
        animation: none;
    }
    
    .portfolio-scroll {
        animation: none;
    }
}

/* Print styles */
@media print {
    .hero-decorator,
    .floating-element,
    .portfolio-scroll {
        display: none !important;
    }
    
    .hero-section,
    .features-section,
    .problem-section,
    .audience-section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .feature-card,
    .audience-card,
    .problem-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Focus management for better accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure all interactive elements have proper focus indicators */
/* a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
} */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    visibility: hidden;
}

.skip-link:focus {
    top: 6px;
}