/* Base Styles */
:root {
    --bg-color: #12050f; /* Even deeper, richer dark background */
    --text-primary: #ffffff;
    --text-secondary: #fbcfe8;
    --accent-1: #fb7185; /* Softer, premium coral/pink */
    --accent-2: #f472b6;
    --gradient-btn: linear-gradient(135deg, #fb7185, #e11d48);
    --glass-bg: rgba(255, 255, 255, 0.05); /* Slightly more opaque for better glass effect */
    --glass-border: rgba(251, 113, 133, 0.3);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(at 0% 0%, rgba(225, 29, 72, 0.15) 0px, transparent 60%),
        radial-gradient(at 100% 100%, rgba(251, 113, 133, 0.12) 0px, transparent 60%);
    background-attachment: fixed; /* Parallax feel */
}

/* Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.5; }
    33% { transform: translateY(-30px) translateX(20px) scale(1.1); opacity: 0.8; }
    66% { transform: translateY(10px) translateX(-20px) scale(0.95); opacity: 0.6; }
}

@keyframes pulseSoft {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(225, 29, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

#main-content {
    transition: opacity 0.8s ease-in;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 2rem;
    overflow: hidden;
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: floatOrb 15s infinite ease-in-out;
}

.orb-1 {
    width: 350px;
    height: 350px;
    background: var(--accent-1);
    top: -100px;
    left: -150px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #c026d3;
    bottom: 10%;
    right: -100px;
    animation-delay: -7s;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 650px;
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    background: rgba(255, 255, 255, 0.03);
    padding: 3.5rem 2.5rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-frame {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    box-shadow: 0 15px 35px rgba(225, 29, 72, 0.4);
    position: relative;
}

.profile-frame::after {
    content: '';
    position: absolute;
    top: -5px; right: -5px; bottom: -5px; left: -5px;
    border-radius: 50%;
    background: inherit;
    filter: blur(15px);
    z-index: -1;
    opacity: 0.6;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
}

h1 {
    font-family: 'Caveat', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    background: linear-gradient(to right, #ffffff, #fbcfe8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    transform: rotate(-2deg);
    display: inline-block;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.2);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* HIGH CTR BUTTON */
.action-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.connect-btn {
    position: relative;
    background: var(--gradient-btn);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem; /* Larger font for CTA */
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: pulseSoft 2.5s infinite;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4);
}

.telegram-icon {
    width: 28px;
    height: 28px;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: floatingIcon 3s ease-in-out infinite;
}

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

.btn-text {
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.connect-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    border-radius: 50px;
    z-index: 1;
}

.connect-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg) translateY(-50%);
    transition: all 0.5s;
    animation: autoShimmer 5s infinite linear;
    z-index: 1;
}

@keyframes autoShimmer {
    0% { transform: rotate(30deg) translateY(-50%) translateX(-150%); }
    20%, 100% { transform: rotate(30deg) translateY(-50%) translateX(150%); }
}

.connect-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #f43f5e, #be185d);
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.5), 0 0 20px rgba(251, 113, 133, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.connect-btn:active {
    transform: translateY(1px);
}

.bot-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Curly Gallery Section */
.gallery {
    padding: 2rem 1.5rem 6rem;
    max-width: 1050px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.gallery-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #2a0e20;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.gallery-item:hover {
    border-color: rgba(251, 113, 133, 0.3);
    box-shadow: 0 25px 50px rgba(225, 29, 72, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

footer {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
}

/* Media Queries for optimal responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 3.5rem; }
    .subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
    .connect-btn { padding: 1rem 2rem; width: 100%; max-width: 300px; font-size: 1.2rem; }
    .hero { padding: 2rem 1rem; min-height: 70vh; }
    .hero-content { padding: 2.5rem 1.5rem; }
    .profile-frame { width: 120px; height: 120px; margin-bottom: 1rem; }
    .gallery { padding: 1rem 1rem 4rem; }
    .gallery-inner { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.8rem; }
    .hero-content { padding: 2rem 1rem; }
    .telegram-icon { width: 24px; height: 24px; }
    .gallery-inner { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}
