* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 0;
}

html.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #000;
    background: #fff;
    overflow-x: hidden;
    transition: opacity 0.5s ease-in;
    position: relative;
    scroll-behavior: smooth;
    overscroll-behavior: smooth;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

body.is-scrolling {
    scroll-behavior: smooth;
}

body.loaded {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #fefefe 0%, #fafafa 20%, #f5f0f8 40%, #f0f5ff 60%, #fef3c7 80%, #fefefe 100%);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.top-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #1E3A8A 0%, #3B82F6 25%, #DC2626 50%, #F59E0B 75%, #9333EA 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.line-1::after,
.line-2::after {
    color: #000;
}

/* Header Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 60px 0;
    position: relative;
    z-index: 5;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -5px;
    text-align: center;
}

.welcome-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000;
    white-space: nowrap;
    animation: floatUpDown 4s ease-in-out infinite;
    display: inline-block;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0px) translateZ(0);
    }
    50% {
        transform: translateY(-18px) translateZ(0);
    }
}

.header-nav {
    display: flex;
    align-items: center;
}

.contact-btn {
    background: #1E3A8A;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
    text-decoration: none;
    display: inline-block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.contact-btn:hover {
    background: #3B82F6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 60px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-headline {
    font-size: 110px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.line-1,
.line-2 {
    display: block;
    color: #000;
    overflow: hidden;
    position: relative;
}

.line-2 {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.line-2.typing,
.line-2.complete {
    opacity: 1 !important;
    max-height: 200px;
    overflow: visible;
}

.line-1::after,
.line-2::after {
    content: '|';
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 4px;
    opacity: 0;
    vertical-align: text-top;
    font-weight: 300;
    color: #000;
    line-height: 1;
    height: 1em;
}

.line-1.typing::after,
.line-2.typing::after {
    opacity: 1;
}

.line-1.complete::after,
.line-2.complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-subtext {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    color: #000;
    max-width: 680px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtext.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 60px;
    color: #9333EA;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-indicator:hover {
    color: #3B82F6;
    opacity: 0.8;
    transform: scale(1.1);
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
}

/* Brothers Section */
.brothers-section {
    min-height: 100vh;
    padding: 120px 80px 120px;
    background: linear-gradient(to bottom, #fafafa 0%, #f8f8f8 30%, #f5f0f8 60%, #f0f5ff 80%, #fafafa 100%);
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 90px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    margin-left: 0;
    color: #000;
    position: relative;
    line-height: 1.2;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: linear-gradient(to bottom, #1E3A8A 0%, #DC2626 33%, #F59E0B 66%, #9333EA 100%);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #1E3A8A 0%, #DC2626 50%, #F59E0B 75%, #9333EA 100%, transparent);
    border-radius: 2px;
}

.brothers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    align-items: start;
}

.brother-card.hidden {
    display: none;
}


/* Filters Wrapper */
.filters-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.filters-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.filters-label {
    letter-spacing: 0.01em;
}

.filters-icon {
    transition: transform 0.3s ease;
    color: #666;
}

.filters-toggle.active .filters-icon {
    transform: rotate(180deg);
    color: #3B82F6;
}

.filters-toggle.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
}

/* Filters Container */
.filters-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
        radial-gradient(140% 140% at 100% 0%, rgba(147, 51, 234, 0.1), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(59, 130, 246, 0.22);
    border-radius: 20px;
    padding: 12px 18px;
    box-shadow:
        0 12px 36px rgba(59, 130, 246, 0.16),
        0 6px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) translateZ(0);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 10;
    min-width: 240px;
    max-width: min(620px, 92vw);
    justify-content: flex-start;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.filters-group-label {
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1E3A8A;
    padding: 8px 6px 2px;
    position: relative;
}

.filters-group-label::after {
    content: '';
    display: block;
    height: 2px;
    width: 28px;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3B82F6, #9333EA);
    opacity: 0.7;
}

.filters-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    user-select: none;
    transition: all 0.2s ease;
    padding: 8px 14px;
    position: relative;
    white-space: nowrap;
    border-radius: 12px;
    margin: -2px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.08);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.filter-checkbox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 51, 234, 0.06));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.filter-checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.22);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.filter-checkbox:hover {
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.18);
}

.filter-checkbox:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(147, 51, 234, 0.1));
}

.filter-checkbox:active {
    transform: scale(0.98);
}

.filter-checkbox:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-input {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #3B82F6;
    margin: 0;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.filter-checkbox:hover .filter-input {
    transform: scale(1.08);
}

.filter-checkbox:active .filter-input {
    transform: scale(0.9);
}

.filter-checkbox span {
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), font-weight 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}

.filter-checkbox:has(.filter-input:checked) {
    color: #000;
    font-weight: 500;
    animation: filterCheck 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-checkbox:has(.filter-input:checked)::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.18) 100%);
}

.filter-checkbox:has(.filter-input:checked) {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.22);
}

.filter-checkbox:has(.filter-input:checked) .filter-input {
    transform: scale(1.15);
    filter: brightness(1.1);
    animation: checkboxBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-checkbox:has(.filter-input:checked) span {
    transform: translateX(2px);
}

.filter-checkbox:has(.filter-input:checked):hover::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(147, 51, 234, 0.18) 100%);
}

@keyframes filterCheck {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes checkboxBounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.3);
    }
    60% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1.15);
    }
}

.brother-card {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease, opacity 0.3s ease-out, transform 0.3s ease-out;
    position: relative;
    background: #fff;
    transform: translate(0, 30px) scale(0.95) translateZ(0);
    -webkit-transform: translate(0, 30px) scale(0.95) translateZ(0);
    will-change: transform, opacity;
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.star-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.8);
}

.brother-card:hover .star-btn {
    opacity: 1;
    transform: scale(1);
}

.star-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.star-icon {
    width: 22px;
    height: 22px;
    color: #666;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    stroke-width: 1.5;
}

.star-icon.starred {
    color: #F59E0B;
    animation: starPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.star-btn:hover .star-icon {
    color: #F59E0B;
}

.star-btn:hover .star-icon.starred {
    color: #DC2626;
}

@keyframes starPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4) rotate(15deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.brother-card.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1) translateZ(0);
    -webkit-transform: translate(0, 0) scale(1) translateZ(0);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
    border-radius: 20px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.brother-card:hover .card-overlay {
    opacity: 1;
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .brother-card:active .card-overlay {
        opacity: 1;
    }
    
    .brother-card:active {
        transform: scale(0.98);
    }
    
    .contact-btn:active {
        transform: translateY(0);
    }
    
    .social-btn:active {
        transform: scale(0.95);
    }
}

.brother-card:hover .card-image img {
    opacity: 0.7;
}

.brother-name {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.01em;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.brother-card:hover .brother-name {
    transform: translateY(0);
}

.card-checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.view-profile-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    transform: translateY(10px) translateZ(0);
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.brother-card:hover .view-profile-btn {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.view-profile-btn:hover {
    background: #fff;
    color: #000;
}

/* Profile Modal */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    overflow: hidden;
    touch-action: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: opacity;
    pointer-events: none;
}

.profile-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000000;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.profile-modal:not(.active) .profile-modal-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.profile-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 1000001;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transform: scale(0.95) translateY(10px) translateZ(0);
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    opacity: 0;
    display: flex;
    flex-direction: column;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.profile-modal.active .profile-content {
    transform: scale(1) translateY(0) translateZ(0);
    opacity: 1;
}

.profile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    color: #999;
    cursor: pointer;
    z-index: 1000002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.profile-close:hover {
    color: #000;
}

.profile-layout {
    display: flex;
    height: 100%;
    overflow-y: auto;
}

.profile-image-section {
    width: 25%;
    min-width: 300px;
    background: #f5f5f5;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: opacity;
}

.profile-info-section {
    width: 75%;
    padding: 60px;
    overflow-y: auto;
    transform: translateX(30px) translateZ(0);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.profile-modal.active .profile-info-section {
    transform: translateX(0) translateZ(0);
    opacity: 1;
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    position: relative;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 70px);
    height: 3px;
    background: linear-gradient(to right, #1E3A8A 0%, #DC2626 33%, #F59E0B 66%, #9333EA 100%);
}

.profile-social-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 1000002;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #ddd;
    background: #fff;
    color: #666;
    position: relative;
    z-index: 1000003;
    pointer-events: auto;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.linkedin-btn {
    border-color: #0077b5;
    color: #0077b5;
}

.linkedin-btn:hover {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
}

.gmail-btn {
    border-color: #ea4335;
    color: #ea4335;
}

.gmail-btn:hover {
    background: #ea4335;
    color: #fff;
    border-color: #ea4335;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.profile-title-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.profile-name {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transform: translateY(15px) translateZ(0);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    flex: 1;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.profile-modal.active .profile-name {
    transform: translateY(0) translateZ(0);
    opacity: 1;
}

.profile-star-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #F59E0B;
    background: #fff;
    color: #F59E0B;
    position: relative;
    z-index: 1000003;
    pointer-events: auto;
    cursor: pointer;
    padding: 0;
}

.profile-star-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.1);
}

.profile-star-btn.starred {
    border-color: #F59E0B;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.15);
}

.profile-star-btn.starred:hover {
    background: #F59E0B;
    color: #fff;
    border-color: #F59E0B;
}

.profile-star-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    stroke-width: 1.5;
}

.profile-star-btn.starred .profile-star-icon {
    fill: currentColor;
    animation: starFill 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-star-btn:not(.starred) .profile-star-icon {
    fill: none;
}

.profile-star-btn:hover .profile-star-icon {
    transform: scale(1.1) rotate(8deg);
}

@keyframes starFill {
    0% {
        transform: scale(1);
        fill-opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(15deg);
        fill-opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        fill-opacity: 1;
    }
}

.profile-subtitle {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0;
    color: #888;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: translateY(15px) translateZ(0);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    line-height: 1.4;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.profile-modal.active .profile-subtitle {
    transform: translateY(0) translateZ(0);
    opacity: 1;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-detail-item {
    transform: translateY(10px) translateZ(0);
    opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.profile-modal.active .profile-detail-item {
    transform: translateY(0) translateZ(0);
    opacity: 1;
}

.profile-modal.active .profile-detail-item:nth-child(1) { transition-delay: 0.3s; }
.profile-modal.active .profile-detail-item:nth-child(2) { transition-delay: 0.32s; }
.profile-modal.active .profile-detail-item:nth-child(3) { transition-delay: 0.34s; }
.profile-modal.active .profile-detail-item:nth-child(4) { transition-delay: 0.36s; }
.profile-modal.active .profile-detail-item:nth-child(5) { transition-delay: 0.38s; }
.profile-modal.active .profile-detail-item:nth-child(6) { transition-delay: 0.4s; }
.profile-modal.active .profile-detail-item:nth-child(7) { transition-delay: 0.42s; }
.profile-modal.active .profile-detail-item:nth-child(8) { transition-delay: 0.44s; }
.profile-modal.active .profile-detail-item:nth-child(9) { transition-delay: 0.46s; }
.profile-modal.active .profile-detail-item:nth-child(10) { transition-delay: 0.48s; }
.profile-modal.active .profile-detail-item:nth-child(11) { transition-delay: 0.5s; }
.profile-modal.active .profile-detail-item:nth-child(12) { transition-delay: 0.52s; }
.profile-modal.active .profile-detail-item:nth-child(13) { transition-delay: 0.54s; }

.profile-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #666;
}

.detail-value {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
}

.linkedin-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.linkedin-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-layout {
        flex-direction: column;
    }
    
    .profile-image-section {
        width: 100%;
        min-width: auto;
        padding: 30px;
    }
    
    .profile-image {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    /* Hide profile image on mobile/tablet */
    .profile-image-section {
        display: none;
    }
    
    .profile-info-section {
        width: 100%;
        padding: 30px 20px;
    }
    
    .profile-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .profile-layout {
        flex-direction: column;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-social-buttons {
        align-self: flex-start;
    }
    
    .profile-name {
        font-size: 32px;
    }
    
    .profile-subtitle {
        font-size: 12px;
    }
    
    .profile-details {
        gap: 20px;
    }
    
    .profile-detail-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* Hide profile image on mobile devices */
    .profile-image-section {
        display: none !important;
    }
    
    .profile-info-section {
        width: 100%;
        padding: 30px 20px;
    }
    
    .profile-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .profile-layout {
        flex-direction: column;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-social-buttons {
        align-self: flex-start;
    }
    
    .profile-name {
        font-size: 32px;
    }
    
    .profile-subtitle {
        font-size: 12px;
    }
    
    .profile-details {
        gap: 20px;
    }
    
    .profile-detail-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .profile-name {
        font-size: 32px;
    }
}

.brother-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2.5px solid transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

/* DSP color accents on different cards - each card has a different color on hover */
.brother-card:nth-child(4n+1):hover::before {
    border-color: #3B82F6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1), 0 8px 24px rgba(59, 130, 246, 0.2);
}

.brother-card:nth-child(4n+2):hover::before {
    border-color: #DC2626;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1), 0 8px 24px rgba(220, 38, 38, 0.2);
}

.brother-card:nth-child(4n+3):hover::before {
    border-color: #F59E0B;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.1), 0 8px 24px rgba(245, 158, 11, 0.2);
}

.brother-card:nth-child(4n+4):hover::before {
    border-color: #9333EA;
    box-shadow: 0 0 0 1px rgba(147, 51, 234, 0.1), 0 8px 24px rgba(147, 51, 234, 0.2);
}

.card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.brother-card:hover .card-image img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (min-width: 1920px) {
    .hero-content {
        max-width: 1400px;
    }
    
    .brothers-section {
        max-width: 2000px;
        padding: 140px 100px 140px;
    }
    
    .brothers-grid {
        gap: 40px;
    }
}

@media (max-width: 1600px) {
    .brothers-section {
        padding: 120px 70px 120px;
    }
}

@media (max-width: 1400px) {
    .brothers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .header {
        padding: 40px 50px 0;
    }
    
    .hero-content {
        padding: 0 50px;
    }
    
    .section-header {
        gap: 16px;
    }
    
    .filters-container {
        min-width: 190px;
    }
}

@media (max-width: 1200px) {
    .brothers-section {
        padding: 110px 60px 110px;
    }
    
    .brothers-grid {
        gap: 30px;
    }
    
    .section-header {
        gap: 16px;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 35px 40px 0;
    }
    
    .logo-image {
        height: 60px;
    }
    
    .hero-headline {
        font-size: 72px;
        line-height: 1.1;
    }
    
    .hero-subtext {
        font-size: 18px;
        max-width: 600px;
    }
    
    .hero-content {
        padding: 0 40px;
    }
    
    .brothers-section {
        padding: 100px 50px 100px;
    }
    
    .section-header {
        margin-bottom: 70px;
        gap: 16px;
    }
    
    .brothers-section .section-title {
        padding-left: 20px;
        font-size: 32px;
        margin-bottom: 0;
    }
    
    .brothers-section .section-title::before {
        left: -16px;
        height: 35px;
    }
    
    .filters-toggle {
        padding: 7px 14px;
        font-size: 13px;
    }
    
    .filters-container {
        gap: 16px;
        padding: 10px 16px;
        min-width: 180px;
        right: 0;
    }
    
    .filter-checkbox {
        font-size: 13px;
        padding: 7px 12px;
    }
    
    .filter-input {
        width: 15px;
        height: 15px;
    }
    
    .brothers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}
    
    .contact-btn {
        padding: 9px 20px;
        font-size: 10px;
    }
    
    .welcome-text {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .hero::before {
        opacity: 0.22;
    }

    .hero::after {
        width: 220px;
        height: 140px;
        bottom: -20px;
        left: -20px;
        opacity: 0.65;
        background-size: 22px 22px;
        background-position: 0 0, 0 11px, 11px -11px, -11px 0;
    }

    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .filters-wrapper {
        flex-shrink: 0;
        margin-bottom: 0;
        width: auto;
    }
    
    .filters-toggle {
        padding: 7px 14px;
        font-size: 12px;
        width: auto;
        justify-content: center;
        min-width: 90px;
        transition: all 0.2s ease;
    }
    
    .filters-container {
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        width: min(94vw, 520px);
        min-width: 220px;
        margin-top: 0;
        gap: 8px;
        padding: 12px 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        border-radius: 14px;
        transform: translateY(-8px) translateZ(0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        max-height: min(60vh, 420px);
        overflow: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }
    
    .filters-container.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) translateZ(0);
        pointer-events: all;
    }
    
    .filter-checkbox {
        font-size: 12px;
        padding: 6px 10px;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        white-space: normal;
        word-break: break-word;
    }
    
    .filter-input {
        width: 15px;
        height: 15px;
    }
    
    .header {
        padding: 25px 25px 0;
        flex-wrap: wrap;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .header-center {
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
        margin-top: 15px;
        order: 3;
    }
    
    .welcome-text {
        font-size: 9px;
    }
    
    .contact-btn {
        padding: 8px 18px;
        font-size: 9px;
    }
    
    .hero-content {
        padding: 0 25px;
        min-height: calc(100vh - 120px);
    }
    
    .hero-headline {
        font-size: 42px;
        line-height: 1.15;
        margin-bottom: 20px;
    }
    
    .hero-subtext {
        font-size: 15px;
        line-height: 1.6;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .brothers-section {
        padding: 70px 30px 70px;
    }
    
    .section-header {
        margin-bottom: 30px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    .brothers-section .section-title {
        padding-left: 16px;
        font-size: 26px;
        margin-bottom: 0;
        flex: 1;
    }
    
    .brothers-section .section-title::before {
        left: -12px;
        width: 3px;
        height: 28px;
    }
    
    .brothers-section .section-title::after {
        width: 45px;
        height: 2px;
    }
    
    .filters-wrapper {
        flex-shrink: 0;
    }
    
    .filters-toggle {
        padding: 7px 12px;
        font-size: 12px;
        width: auto;
        min-width: 85px;
        justify-content: center;
    }
    
    .filters-container {
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        width: auto;
        min-width: 170px;
        margin-top: 0;
        gap: 6px;
        padding: 10px 12px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        border-radius: 12px;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    
    .filters-container.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }
    
    .filter-checkbox {
        font-size: 12px;
        padding: 6px 10px;
        flex: 0 0 auto;
        min-width: auto;
        justify-content: flex-start;
        white-space: nowrap;
    }
    
    .filter-input {
        width: 14px;
        height: 14px;
    }
    
    .brothers-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
        margin: 0;
    }
    
    .brother-card {
        max-width: 100%;
        transition: box-shadow 0.2s ease, opacity 0.2s ease-out, transform 0.2s ease-out;
    }
    
    .brother-card.visible {
        transform: translate(0, 0) scale(1) translateZ(0);
        -webkit-transform: translate(0, 0) scale(1) translateZ(0);
    }
    
    .card-image img {
        transition: transform 0.3s ease-out;
    }
    
    .card-overlay {
        transition: opacity 0.2s ease;
    }
    
    .profile-content {
        transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    }
    
    .profile-info-section {
        transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    }
    
    .profile-detail-item {
        transition: transform 0.18s ease-out, opacity 0.18s ease-out;
    }
    
    .profile-modal.active .profile-detail-item:nth-child(1) { transition-delay: 0s; }
    .profile-modal.active .profile-detail-item:nth-child(2) { transition-delay: 0.02s; }
    .profile-modal.active .profile-detail-item:nth-child(3) { transition-delay: 0.04s; }
    .profile-modal.active .profile-detail-item:nth-child(4) { transition-delay: 0.06s; }
    .profile-modal.active .profile-detail-item:nth-child(5) { transition-delay: 0.08s; }
    .profile-modal.active .profile-detail-item:nth-child(6) { transition-delay: 0.1s; }
    .profile-modal.active .profile-detail-item:nth-child(7) { transition-delay: 0.12s; }
    .profile-modal.active .profile-detail-item:nth-child(8) { transition-delay: 0.14s; }
    .profile-modal.active .profile-detail-item:nth-child(9) { transition-delay: 0.16s; }
    .profile-modal.active .profile-detail-item:nth-child(10) { transition-delay: 0.18s; }
    .profile-modal.active .profile-detail-item:nth-child(11) { transition-delay: 0.2s; }
    .profile-modal.active .profile-detail-item:nth-child(12) { transition-delay: 0.22s; }
    .profile-modal.active .profile-detail-item:nth-child(13) { transition-delay: 0.24s; }
    
    .filter-checkbox {
        transition: all 0.15s ease;
    }
    
    .social-btn {
        transition: all 0.2s ease;
    }
    
    .profile-star-btn {
        transition: all 0.2s ease;
    }
    
    .scroll-indicator {
        left: 25px;
        bottom: 25px;
        width: 20px;
        height: 20px;
    }
    
    /* Hide profile image on mobile */
    .profile-image-section {
        display: none;
    }
    
    .profile-info-section {
        width: 100%;
        padding: 30px 20px;
    }
    
    .profile-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .profile-layout {
        flex-direction: column;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-social-buttons {
        align-self: flex-start;
    }
    
    .profile-name {
        font-size: 32px;
    }
    
    .profile-subtitle {
        font-size: 12px;
    }
    
    .profile-details {
        gap: 20px;
    }
    
    .profile-detail-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filters-wrapper {
        width: 100%;
    }

    .filters-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .filters-container {
        position: static;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 8px;
        max-height: none;
        overflow: visible;
        overflow-x: hidden;
        transform: none;
    }

    .filters-group-label {
        grid-column: 1 / -1;
    }

    .filter-checkbox {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 20px 0;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .welcome-text {
        font-size: 8px;
        letter-spacing: 0.1em;
    }
    
    .contact-btn {
        padding: 7px 16px;
        font-size: 8px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-headline {
        font-size: 36px;
        margin-bottom: 18px;
    }
    
    .hero-subtext {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .brothers-section {
        padding: 60px 20px 60px;
    }
    
    .section-header {
        margin-bottom: 30px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .brothers-section .section-title {
        font-size: 24px;
        margin-bottom: 0;
        padding-left: 14px;
        flex: 1;
    }
    
    .brothers-section .section-title::before {
        left: -10px;
        width: 2px;
        height: 26px;
    }
    
    .brothers-section .section-title::after {
        width: 40px;
        height: 2px;
    }
    
    .filters-wrapper {
        flex-shrink: 0;
    }
    
    .filters-toggle {
        padding: 6px 12px;
        font-size: 11px;
        width: auto;
        min-width: 80px;
        justify-content: center;
    }
    
    .filters-container {
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        width: auto;
        min-width: 160px;
        margin-top: 0;
        gap: 6px;
        padding: 8px 10px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        border-radius: 10px;
        transform: translateY(-8px) translateZ(0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .filters-container.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) translateZ(0);
        pointer-events: all;
    }
    
    .filter-checkbox {
        font-size: 11px;
        padding: 5px 8px;
        flex: 0 0 auto;
        min-width: auto;
        justify-content: flex-start;
        gap: 6px;
        white-space: nowrap;
    }
    
    .filter-input {
        width: 12px;
        height: 12px;
    }
    
    .brothers-grid {
        gap: 20px;
    }
    
    .brother-card {
        border-radius: 16px;
    }
    
    .card-overlay {
        padding: 20px;
    }
    
    .brother-name {
        font-size: 20px;
    }
    
    .view-profile-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .profile-info-section {
        padding: 20px 15px;
    }
    
    .profile-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .profile-name {
        font-size: 26px;
    }
    
    .profile-subtitle {
        font-size: 10px;
    }
    
    .profile-details {
        gap: 18px;
    }
    
    .detail-label {
        font-size: 10px;
    }
    
    .detail-value {
        font-size: 13px;
    }
    
    .profile-close {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
    }
    
    .social-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 360px) {
    .hero-headline {
        font-size: 32px;
    }
    
    .hero-subtext {
        font-size: 13px;
    }
    
    .brothers-section .section-title {
        font-size: 22px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-info-section {
        padding: 18px 12px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-content {
        padding: 40px 25px;
    }
    
    .hero-headline {
        font-size: 38px;
        margin-bottom: 15px;
    }
    
    .hero-subtext {
        font-size: 14px;
    }
    
    .brothers-section {
        padding: 60px 30px 60px;
    }
    
    .profile-content {
        max-height: 90vh;
    }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    /* Reduce backdrop-filter complexity on mobile */
    .profile-modal-overlay {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        transition: opacity 0.1s ease, visibility 0.1s ease;
    }
    
    .profile-modal:not(.active) .profile-modal-overlay {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
    
    .profile-modal:not(.active) .profile-content {
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
    
    .profile-modal:not(.active) {
        z-index: -1 !important;
    }
    
    /* Faster modal transitions on mobile */
    .profile-modal {
        transition: opacity 0.1s ease, visibility 0.1s ease;
        pointer-events: none;
    }
    
    .profile-modal.active {
        pointer-events: all;
    }
    
    .profile-modal:not(.active) {
        pointer-events: none !important;
    }
    
    .profile-content {
        transform: scale(0.98) translateY(5px) translateZ(0);
        transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    }
    
    .profile-modal.active .profile-content {
        transform: scale(1) translateY(0) translateZ(0);
    }
    
    .profile-info-section {
        transform: translateX(20px) translateZ(0);
        transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    }
    
    .profile-name {
        transform: translateY(10px) translateZ(0);
        transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    }
    
    .profile-subtitle {
        transform: translateY(10px) translateZ(0);
        transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    }
    
    .profile-detail-item {
        transform: translateY(8px) translateZ(0);
        transition: transform 0.12s ease-out, opacity 0.12s ease-out;
    }
    
    /* Ensure cards are immediately visible when modal closes */
    .brother-card {
        opacity: 1 !important;
        transition: box-shadow 0.2s ease, transform 0.2s ease-out !important;
    }
    
    /* Simplify animations */
    @keyframes floatUpDown {
        0%, 100% {
            transform: translateY(0px) translateZ(0);
        }
        50% {
            transform: translateY(-12px) translateZ(0);
        }
    }
    
    /* Optimize card hover effects for touch */
    .brother-card:hover .card-image img {
        transform: scale(1.02) translateZ(0);
    }
    
    /* Reduce transition complexity */
    .hero-subtext.animated {
        transition: opacity 0.4s ease-out 0.15s, transform 0.4s ease-out 0.15s;
    }
    
    /* Remove transition delays on mobile for instant feedback */
    .profile-modal.active .profile-detail-item:nth-child(1) { transition-delay: 0s; }
    .profile-modal.active .profile-detail-item:nth-child(2) { transition-delay: 0.02s; }
    .profile-modal.active .profile-detail-item:nth-child(3) { transition-delay: 0.04s; }
    .profile-modal.active .profile-detail-item:nth-child(4) { transition-delay: 0.06s; }
    .profile-modal.active .profile-detail-item:nth-child(5) { transition-delay: 0.08s; }
    .profile-modal.active .profile-detail-item:nth-child(6) { transition-delay: 0.1s; }
    .profile-modal.active .profile-detail-item:nth-child(7) { transition-delay: 0.12s; }
    .profile-modal.active .profile-detail-item:nth-child(8) { transition-delay: 0.14s; }
    .profile-modal.active .profile-detail-item:nth-child(9) { transition-delay: 0.16s; }
    .profile-modal.active .profile-detail-item:nth-child(10) { transition-delay: 0.18s; }
    .profile-modal.active .profile-detail-item:nth-child(11) { transition-delay: 0.2s; }
    .profile-modal.active .profile-detail-item:nth-child(12) { transition-delay: 0.22s; }
    .profile-modal.active .profile-detail-item:nth-child(13) { transition-delay: 0.24s; }
}

/* Tablet portrait */
@media (min-width: 481px) and (max-width: 768px) {
    .brothers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 100%;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .brothers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

