
:root {
    --primary-color: #090b10;
    --card-bg: rgba(25, 30, 45, 0.6);
    --secondary-color: #7C4DFF;
    --accent-color: #00B8D9;
    --third-color: #FF5CA1;
    --text-color: #f7f7f9;
    --text-muted: rgba(247, 247, 249, 0.7);
    --shadow-soft: 0 10px 40px 0 rgba(0, 0, 0, 0.2);
    --gradient-main: linear-gradient(135deg, #7C4DFF 0%, #00B8D9 100%);
    --gradient-accent: linear-gradient(135deg, #00B8D9 0%, #FF5CA1 100%);
    --gradient-third: linear-gradient(135deg, #FF5CA1 0%, #7C4DFF 100%);
    --gradient-dark: linear-gradient(135deg, #0d1117 0%, #19212d 100%);
}

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

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #090a0f;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231a1f2e' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E"),
        radial-gradient(circle at 25% 10%, rgba(124, 77, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 184, 217, 0.12) 0%, transparent 50%);
    color: #ffffff;
    padding: 20px 20px 80px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}


.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.background-decoration::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -5%;
    width: 30vw;
    height: 30vw;
    border-radius: 50%;
    background: linear-gradient(to right, rgba(124, 77, 255, 0.03), rgba(0, 184, 217, 0.03));
    filter: blur(60px);
    animation: floatAround 25s ease-in-out infinite alternate;
}

.background-decoration::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: linear-gradient(to right, rgba(0, 184, 217, 0.03), rgba(255, 92, 161, 0.03));
    filter: blur(80px);
    animation: floatAround 30s ease-in-out infinite alternate-reverse;
}


@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

.background-decoration::before, 
.background-decoration::after {
    box-shadow: 
        calc(25vw * 0.3) calc(25vh * 0.7) 0 1px rgba(255, 255, 255, 0.4),
        calc(75vw * 0.6) calc(35vh * 0.3) 0 1px rgba(255, 255, 255, 0.3),
        calc(15vw * 0.5) calc(60vh * 0.2) 0 1px rgba(255, 255, 255, 0.5),
        calc(50vw * 0.8) calc(55vh * 0.9) 0 1px rgba(255, 255, 255, 0.3),
        calc(70vw * 0.7) calc(80vh * 0.5) 0 1px rgba(255, 255, 255, 0.4);
    animation: twinkle 5s infinite alternate-reverse;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(180deg); }
    100% { transform: translate(-5%, -3%) rotate(360deg); }
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


.grid-container > div {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.grid-container > div.show {
    opacity: 1;
    transform: translateY(0);
}

.grid-container > div:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.grid-container > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.grid-container > div:hover::before {
    transform: scaleX(1);
}


.header-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 35px;
    background: rgba(20, 25, 35, 0.7);
    position: relative;
    overflow: hidden;
}

.header-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    animation: rotateGradient 15s linear infinite;
    pointer-events: none;
}

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

.name-container {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.decorative-line {
    height: 3px;
    max-width: 300px;
    margin: 0 auto;
    background: var(--gradient-main);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.decorative-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.info-card, .wide-card {
    grid-column: span 2;
}

.about-card, .contact-card, .photo-card {
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.card-header i {
    font-size: 1.5em;
    margin-right: 15px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(124, 77, 255, 0.5));
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    margin: 10px 0;
    font-weight: 600;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(124, 77, 255, 0.3);
    position: relative;
    display: inline-block;
}

h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(10px);
    opacity: 0.5;
}

h2 {
    font-size: 1.4em;
    color: #cccccc;
    margin-bottom: 20px;
    font-weight: 400;
}

h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    font-weight: 500;
    color: white;
    position: relative;
    display: inline-block;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.card-header:hover h3::after {
    transform: scaleX(1);
    transform-origin: left;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 10px 0;
    color: #cccccc;
}


.personal-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-bottom-color: rgba(124, 77, 255, 0.5);
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
}

.info-label {
    font-weight: 500;
    color: #cccccc;
}

.info-value {
    font-weight: 700;
    color: #ffffff;
}


.glow-card {
    background: rgba(20, 24, 35, 0.3);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    height: 100%;
    transition: all 0.3s ease;
}

.glow-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(124, 77, 255, 0.3);
}

.glow-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.1) 0%, rgba(0, 184, 217, 0.05) 50%, transparent 70%);
    transform: rotate(30deg);
    animation: glowMove 15s linear infinite;
    pointer-events: none;
}

.blob-decoration {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(124, 77, 255, 0.1);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
    animation: pulsate 8s ease-in-out infinite alternate;
}

.blob-decoration.right {
    left: auto;
    right: -30px;
    background: rgba(0, 184, 217, 0.1);
    animation-delay: 2s;
}

@keyframes pulsate {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes glowMove {
    0% { transform: translateX(-25%) translateY(10%) rotate(0deg); }
    50% { transform: translateX(25%) translateY(-10%) rotate(180deg); }
    100% { transform: translateX(-25%) translateY(10%) rotate(360deg); }
}


.contacts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    color: white;
}

.contact-item:hover::before {
    opacity: 0.1;
}

.contact-item i {
    font-size: 1.3em;
    margin-right: 15px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.pulse-icon {
    animation: pulse-faint 3s infinite alternate;
}

@keyframes pulse-faint {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.contact-item:hover i {
    transform: scale(1.2);
}


.photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 15px;
    border-radius: 8px;
}

.mom-photo {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1);
}

.photo-card:hover .mom-photo {
    transform: scale(1.03);
    filter: brightness(1.1);
    border-color: rgba(124, 77, 255, 0.3);
}

.photo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(9, 10, 15, 0.5));
    pointer-events: none;
    border-radius: 8px;
}


footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(9, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.copyright {
    text-align: left;
}

.copyright p {
    margin: 0;
    line-height: 1.4;
}

.rights {
    font-size: 0.8em;
    color: #888;
    max-width: 600px;
    font-style: italic;
}

.quote {
    font-size: 0.9em;
    color: #aaa;
    max-width: 600px;
    margin-top: 10px;
    font-style: italic;
    border-left: 2px solid var(--accent-color);
    padding-left: 10px;
    user-select: none;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon i {
    position: relative;
    z-index: 1;
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #090a0f;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    animation: jumpAndBounce 1.5s ease-in-out infinite;
}

@keyframes jumpAndBounce {
    0% { 
        transform: translateY(0) scale(1);
    }
    20% { 
        transform: translateY(-60px) scale(1.2);
    }
    40% { 
        transform: translateY(0) scale(0.9);
    }
    60% { 
        transform: translateY(-40px) scale(1.1);
    }
    80% { 
        transform: translateY(0) scale(0.95);
    }
    100% { 
        transform: translateY(0) scale(1);
    }
}


.profile-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 20px;
}

.update-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.update-text {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

.switcher-container {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 30px;
    gap: 5px;
}

.switcher-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.switcher-btn.active {
    color: #121212;
    font-weight: 600;
}

.switcher-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    background: var(--gradient-main);
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.profile-content {
    transition: opacity 0.3s ease;
    display: none;
}

.profile-content.active {
    display: grid;
}


#profile-event.active {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#profile-event {
    display: none;
    visibility: hidden;
    opacity: 0;
}

#profile-event.active {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

#profile-event.active .event-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#profile-event.active .event-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#profile-event.active .event-photo-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#profile-event.active .event-photo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


.event-container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    grid-column: 1 / -1;
    width: 100%;
    position: relative;
    z-index: 10;
}

.event-title {
    font-size: 3em !important;
    color: #fff !important;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

.event-photo-wrapper {
    max-width: 500px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: photoFloat 4s ease-in-out infinite;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes photoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.event-photo {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.event-photo:hover {
    transform: scale(1.05);
}


.funeral-decoration {
    position: absolute;
    top: 50px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 100px;
    z-index: 5;
}

.candle {
    width: 20px;
    height: 80px;
    background: linear-gradient(to bottom, #f4f1de 0%, #e8e2c4 100%);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(244, 241, 222, 0.5);
}

.flame {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 15px;
    background: radial-gradient(circle, #ff6b35 0%, #ffa500 50%, #ffff00 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 1.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% {
        transform: translateX(-50%) scale(1) rotate(-2deg);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.1) rotate(1deg);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) scale(0.9) rotate(-1deg);
        opacity: 1;
    }
}

.funeral-cross {
    font-size: 4em;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    margin-bottom: 20px;
    animation: crossGlow 3s ease-in-out infinite alternate;
}

@keyframes crossGlow {
    from {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(212, 175, 55, 1), 0 0 40px rgba(212, 175, 55, 0.5);
    }
}

.funeral-dates {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    font-size: 1.5em;
    color: #ccc;
}

.birth-date, .death-date {
    font-weight: bold;
    color: #fff;
}

.death-symbol {
    font-size: 2em;
    color: #d4af37;
    margin: 0;
}

.photo-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 5px solid #d4af37;
    border-radius: 25px;
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.5),
        inset 0 0 20px rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.funeral-message {
    margin-top: 40px;
    text-align: center;
}

.memorial-text {
    font-size: 1.8em;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    animation: memorialGlow 2s ease-in-out infinite alternate;
}

.rest-text {
    font-size: 1.2em;
    color: #ccc;
    font-style: italic;
    opacity: 0.8;
}

@keyframes memorialGlow {
    from {
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }
    to {
        text-shadow: 0 0 25px rgba(212, 175, 55, 1);
    }
}

.falling-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ff69b4 0%, #ffb6c1 100%);
    border-radius: 50% 0 50% 0;
    opacity: 0.7;
    animation: fall linear infinite;
}

.petal:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    left: 25%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.petal:nth-child(3) {
    left: 40%;
    animation-duration: 7s;
    animation-delay: 4s;
}

.petal:nth-child(4) {
    left: 60%;
    animation-duration: 9s;
    animation-delay: 1s;
}

.petal:nth-child(5) {
    left: 75%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.petal:nth-child(6) {
    left: 90%;
    animation-duration: 8s;
    animation-delay: 5s;
}

@keyframes fall {
    0% {
        top: -20px;
        transform: rotate(0deg);
    }
    100% {
        top: 100vh;
        transform: rotate(360deg);
    }
}


.music-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.player-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.music-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.music-btn.active {
    background: var(--gradient-main);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.player-info {
    text-align: center;
}

.track-name {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}


@media (max-width: 768px) {
    body {
        padding: 15px 15px 90px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 600px;
    }
    
    .info-card, .wide-card {
        grid-column: 1;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .header-card, .grid-container > div {
        padding: 20px;
        border-radius: 14px;
    }
    
    .card-header h3 {
        font-size: 1.4em;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-item {
        font-size: 0.95em;
    }
    
    .mom-photo {
        max-height: 300px;
    }
    
    .profile-switcher {
        position: fixed;
        top: 15px;
        right: 15px;
        left: 15px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .update-info {
        order: -1;
        width: 100%;
        text-align: center;
    }
    
    .update-text {
        font-size: 10px;
    }
    
    .switcher-container {
        width: 100%;
        max-width: 500px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .switcher-btn {
        padding: 8px 14px;
        font-size: 12px;
        flex: 1;
        min-width: 70px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .copyright {
        text-align: center;
        order: 2;
    }
    
    .social-icons {
        order: 1;
    }

    .event-title {
        font-size: 2.5em !important;
        margin-bottom: 25px;
    }
    
    .event-photo-wrapper {
        max-width: 350px;
    }
    
    .funeral-decoration {
        top: 40px;
        padding: 0 70px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px 10px 100px;
        font-size: 14px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0;
        padding: 0 5px;
    }
    
    .header-card, .grid-container > div {
        padding: 15px;
        border-radius: 12px;
        margin: 0;
    }
    
    h1 {
        font-size: 1.8em !important;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    h2 {
        font-size: 1em !important;
        line-height: 1.3;
    }
    
    .card-header h3 {
        font-size: 1.2em;
    }
    
    .card-header i {
        font-size: 1.1em;
        margin-right: 8px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        margin-bottom: 10px;
    }
    
    .info-label {
        font-size: 0.85em;
        color: #999;
    }
    
    .info-value {
        font-size: 0.95em;
        word-break: break-word;
    }
    
    .contact-item {
        font-size: 0.9em;
        padding: 8px;
    }
    
    .contact-item i {
        font-size: 1.1em;
        margin-right: 8px;
    }
    
    .mom-photo {
        max-height: 200px;
        width: 100%;
        object-fit: cover;
    }
    
    .profile-switcher {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        z-index: 1000;
    }
    
    .update-info {
        order: -1;
        width: 100%;
        text-align: center;
        padding: 6px 12px;
        border-radius: 15px;
    }
    
    .update-text {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
    
    .switcher-container {
        width: 100%;
        max-width: none;
        justify-content: center;
        flex-wrap: wrap;
        gap: 3px;
        padding: 3px;
    }
    
    .switcher-btn {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
        flex: 1;
        min-width: 55px;
        border-radius: 15px;
    }
    
    .switcher-slider {
        border-radius: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 10px;
    }
    
    .copyright {
        text-align: center;
        order: 2;
    }
    
    .copyright p {
        font-size: 0.8em;
        margin-bottom: 5px;
    }
    
    .social-icons {
        order: 1;
        gap: 15px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .social-icon i {
        font-size: 1.2em;
    }
    
    .preloader-photo {
        width: 80px !important;
        height: 80px !important;
    }
    
    .music-player {
        bottom: 15px;
        left: 15px;
        padding: 10px;
        min-width: 150px;
        border-radius: 12px;
    }
    
    .music-btn {
        width: 35px;
        height: 35px;
    }
    
    .music-btn i {
        font-size: 0.9em;
    }
    
    .event-container {
        padding: 20px 10px;
        min-height: 70vh;
    }
    
    .event-title {
        font-size: 2em !important;
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.2;
    }
    
    .funeral-cross {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    
    .funeral-dates {
        gap: 15px;
        margin: 15px 0;
        font-size: 1.2em;
    }
    
    .death-symbol {
        font-size: 1.5em;
    }
    
    .event-photo-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .funeral-message {
        margin-top: 25px;
    }
    
    .memorial-text {
        font-size: 1.4em;
        margin-bottom: 8px;
    }
    
    .rest-text {
        font-size: 1em;
    }
    
    .funeral-decoration {
        top: 30px;
        padding: 0 50px;
    }
    
    .candle {
        width: 15px;
        height: 60px;
    }
    
    .flame {
        width: 6px;
        height: 12px;
        top: -12px;
    }
    
    .photo-frame {
        border-width: 3px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        max-width: 900px;
    }
    
    .profile-switcher {
        top: 20px;
        right: 20px;
        gap: 15px;
    }
    
    .update-text {
        font-size: 11px;
    }
    
    .switcher-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .event-container {
        min-height: 90vh;
        padding: 10px;
    }
    
    .event-title {
        font-size: 1.8em !important;
        margin-bottom: 15px;
    }
    
    .funeral-cross {
        font-size: 2em;
        margin-bottom: 10px;
    }
    
    .event-photo-wrapper {
        max-width: 200px;
    }
    
    .funeral-message {
        margin-top: 15px;
    }
    
    .memorial-text {
        font-size: 1.2em;
    }
    
    .funeral-decoration {
        top: 20px;
        padding: 0 30px;
    }
    
    .candle {
        height: 40px;
    }
    
    .profile-switcher {
        top: 5px;
        gap: 5px;
    }
    
    .update-text {
        font-size: 8px;
    }
    
    .switcher-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

.achievements-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.achievements-card .glow-card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.achievements-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(124, 77, 255, 0.3);
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.achievement-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.2);
}

.achievement-item i {
    font-size: 28px;
    margin-right: 20px;
    color: var(--accent-color);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(124, 77, 255, 0.3));
    flex-shrink: 0;
}

.achievement-content {
    flex-grow: 1;
}

.achievement-item h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.achievement-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.achievement-content p::-webkit-scrollbar {
    width: 6px;
}

.achievement-content p::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.achievement-content p::-webkit-scrollbar-thumb {
    background: rgba(124, 77, 255, 0.5);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .achievement-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .achievement-item i {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 24px;
    }
    
    .achievement-item h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .achievement-content p {
        font-size: 14px;
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .achievements-card {
        padding: 20px;
    }
    
    .achievements-card .glow-card {
        padding: 20px;
    }
    
    .achievement-item {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .achievement-item i {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .achievement-item h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .achievement-content p {
        font-size: 13px;
        line-height: 1.5;
        max-height: 120px;
    }
} 