:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --accent: #8b5cf6;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 30px 60px rgba(139, 92, 246, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 25s infinite ease-in-out;
    filter: blur(40px);
}

.bg-circle:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: #667eea;
    animation-delay: 0s;
}

.bg-circle:nth-child(2) {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
    background: #764ba2;
    animation-delay: 8s;
}

.bg-circle:nth-child(3) {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 20%;
    background: #f5576c;
    animation-delay: 16s;
}

.bg-circle:nth-child(4) {
    width: 300px;
    height: 300px;
    bottom: 30%;
    right: 10%;
    background: #4facfe;
    animation-delay: 12s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(-40px, -40px) scale(1.1) rotate(90deg);
    }
    50% {
        transform: translate(40px, 40px) scale(0.9) rotate(180deg);
    }
    75% {
        transform: translate(40px, -40px) scale(1.05) rotate(270deg);
    }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.title-frame {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border-radius: 25px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.title-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.8s;
}

.title-frame:hover::before {
    left: 100%;
}

.title-frame:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.project-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.title-frame:hover .project-title {
    transform: scale(1.05);
    letter-spacing: 1px;
    text-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.project-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    font-weight: 400;
    transition: all 0.4s;
}

.title-frame:hover .project-subtitle {
    color: var(--text-light);
    transform: scale(1.05);
}

.frames-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.info-frame {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.6s;
}

.info-frame:hover::before {
    left: 100%;
}

.info-frame:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.frame-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-frame:hover .frame-icon {
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.3));
}

.frame-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
    transition: all 0.4s;
}

.info-frame:hover .frame-title {
    transform: scale(1.1);
    color: var(--accent);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.frame-text {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
    transition: all 0.4s;
}

.info-frame:hover .frame-text {
    color: var(--text-light);
    transform: scale(1.03);
}

#about-project:hover {
    border-color: #667eea;
}

#for-students:hover {
    border-color: #4facfe;
}

#for-teachers:hover {
    border-color: #f5576c;
}

.continue-section {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    border: 2px solid transparent;
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.continue-btn:hover::before {
    left: 100%;
}

.continue-btn:hover {
    transform: translateY(-8px) scale(1.1) rotate(3deg);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.6);
    border-color: var(--accent);
    letter-spacing: 1px;
}

.continue-btn:active {
    transform: translateY(-4px) scale(1.05) rotate(1deg);
}

.btn-text {
    transition: all 0.3s;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: all 0.3s;
    transform: translateX(0);
}

.continue-btn:hover .btn-arrow {
    transform: translateX(10px) rotate(15deg);
    animation: arrowPulse 0.5s infinite alternate;
}

@keyframes arrowPulse {
    from {
        transform: translateX(10px) rotate(15deg) scale(1);
    }
    to {
        transform: translateX(10px) rotate(15deg) scale(1.2);
    }
}

.author-section {
position: fixed;
bottom: 30px;
right: 30px;
display: flex;
align-items: center;
gap: 15px;
cursor: pointer;
z-index: 1000;
opacity: 0;
animation: slideInRight 1s 1.5s forwards;
padding: 15px;
background: rgba(30, 41, 59, 0.7);
backdrop-filter: blur(15px);
border-radius: 25px;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.author-section:hover {
transform: translateX(-10px) scale(1.05);
background: rgba(30, 41, 59, 0.9);
border-color: var(--accent);
box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

.telegram-img {
width: 70px;
height: 70px;
border-radius: 50%;
object-fit: cover;
border: 3px solid transparent;
background: linear-gradient(135deg, #08aeea, #2af598) border-box;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.author-section:hover .telegram-img {
transform: scale(1.15) rotate(-10deg);
box-shadow: 0 0 30px rgba(8, 174, 234, 0.6);
}

.author-desc {
display: flex;
flex-direction: column;
gap: 5px;
}

.author-text {
font-weight: 600;
color: var(--text-light);
font-size: 1.1rem;
transition: all 0.3s;
}

.author-subtext {
color: var(--text-gray);
font-size: 0.9rem;
transition: all 0.3s;
}

.author-section:hover .author-text {
color: #08aeea;
}

.author-section:hover .author-subtext {
color: var(--text-light);
}

@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(100px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.close-telegram {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.close-telegram:hover {
    background: #ef4444;
    transform: scale(1.1);
}

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

@media (max-width: 1024px) {
    .frames-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px;
        gap: 30px;
    }
    
    .title-frame {
        padding: 30px 20px;
    }
    
    .project-title {
        font-size: 2.8rem;
    }
    
    .frames-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-frame {
        padding: 25px 20px;
    }
    
    .continue-btn {
        padding: 18px 40px;
        font-size: 1.1rem;
    }
    
    .author-section {
        bottom: 20px;
        right: 20px;
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .author-section:hover {
        transform: translateY(-10px) scale(1.05);
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 2.2rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .frame-title {
        font-size: 1.5rem;
    }
    
    .frame-text {
        font-size: 0.9rem;
    }
}