* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF1493;
    --secondary-color: #FFD700;
    --accent-blue: #87CEEB;
    --accent-purple: #9370DB;
    --accent-pink: #FFB6C1;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
}

body {
    font-family: 'Fredoka', 'Comic Neue', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.balloon-float {
    position: absolute;
    font-size: 40px;
    animation: float 15s infinite ease-in-out;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
    }
    50% {
        transform: translateY(-100vh) rotate(180deg);
    }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="3" fill="white" opacity="0.3"/></svg>');
    animation: stars 20s linear infinite;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    animation: bounceIn 1s;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.hero p {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFA500 100%);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
    border: 3px solid white;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.balloon-emoji {
    font-size: 80px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 60px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Game Modes Section */
.game-modes {
    padding: 100px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.mode-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    border: 5px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.mode-card:hover {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.mode-card.easy { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.mode-card.medium { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.mode-card.hard { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }

.mode-card h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.mode-card .grid-size {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

/* How to Play Section */
.how-to-play {
    padding: 100px 20px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.step-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 30px 0 15px;
    text-align: center;
}

.step-card p {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

/* Levels Section */
.levels {
    padding: 100px 20px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.level-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.level-card:hover {
    transform: translateY(-10px);
}

.level-badge {
    display: inline-block;
    padding: 10px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.level-card h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.level-card ul {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.level-card li {
    font-size: 18px;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.level-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00FF00;
    font-weight: 700;
    font-size: 20px;
}

/* Special Features */
.special-features {
    padding: 100px 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.special-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 8px solid var(--primary-color);
}

.special-card h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.special-card p {
    font-size: 18px;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 20px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.screenshot-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.screenshot-card:hover {
    transform: scale(1.05);
}

.screenshot-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.screenshot-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    text-align: center;
}

/* Mobile Mockup */
.phone-mockup-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.phone-frame {
    position: relative;
    width: 340px;
    height: 700px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 45px;
    padding: 15px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.phone-frame:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-speaker {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(50, 50, 50, 0.8);
    border-radius: 10px;
}

.phone-camera {
    position: absolute;
    top: 8px;
    right: 40px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #1e3a5f 40%, #0a1829 100%);
    border-radius: 50%;
    border: 2px solid rgba(100, 100, 100, 0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-bottom-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    z-index: 11;
}

.mockup-features {
    max-width: 500px;
    color: white;
}

.mockup-features h3 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.mockup-features p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.mockup-features ul {
    list-style: none;
    margin-top: 30px;
}

.mockup-features li {
    font-size: 18px;
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    line-height: 1.6;
}

.mockup-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.device-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Team Section */
.team-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.team-intro {
    text-align: center;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 500;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.team-member {
    background: white;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.member-avatar.leader {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.member-avatar.researcher {
    background: linear-gradient(135deg, #87CEEB, #4682B4);
}

.team-member:hover .member-avatar {
    transform: scale(1.1) rotate(5deg);
}

.avatar-icon {
    font-size: 60px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.member-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-badge.yonetici {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--text-dark);
}

.member-badge.arastirmaci {
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    color: white;
}

.team-member h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.member-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.member-stars {
    font-size: 20px;
    margin-top: 10px;
}

.support-section {
    max-width: 800px;
    margin: 60px auto 0;
}

.support-badge {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 30px;
    border-left: 8px solid var(--secondary-color);
}

.support-icon {
    font-size: 80px;
    flex-shrink: 0;
}

.support-text h4 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.support-text p {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 5px 0;
}

.support-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .support-badge {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .support-icon {
        font-size: 60px;
    }

    .support-text h4 {
        font-size: 24px;
    }

    .support-text p {
        font-size: 16px;
    }

    .team-intro {
        font-size: 20px;
    }
}

/* Stats Section */
.stats {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 24px;
    margin-top: 10px;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 56px;
    color: white;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: 24px;
    color: white;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.download-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.download-button img {
    width: 40px;
    height: 40px;
}

/* Footer */
footer {
    background: #2C3E50;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    display: block;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 20px 0;
        font-size: 20px;
    }

    .nav-links a::after {
        display: none;
    }

    nav {
        padding: 0 20px;
    }

    .logo img {
        height: 50px;
    }

    .logo span {
        font-size: 24px;
    }

    .features-grid,
    .modes-grid,
    .steps-grid,
    .levels-grid,
    .special-grid {
        grid-template-columns: 1fr;
    }

    .phone-frame {
        width: 280px;
        height: 580px;
        border-radius: 35px;
        padding: 12px;
    }

    .phone-notch {
        width: 140px;
        height: 24px;
    }

    .phone-screen {
        border-radius: 28px;
    }

    .mockup-features h3 {
        font-size: 32px;
    }

    .mockup-features p {
        font-size: 18px;
    }

    .mockup-container {
        gap: 40px;
    }
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: modalFadeIn 0.3s;
}

.game-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    animation: modalSlideUp 0.4s;
}

@keyframes modalSlideUp {
    from { 
        transform: translateY(50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-phone {
    position: relative;
    width: 380px;
    height: 760px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 50px;
    padding: 18px;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.modal-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 0 0 22px 22px;
    z-index: 10;
}

.modal-phone-speaker {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 6px;
    background: rgba(50, 50, 50, 0.8);
    border-radius: 10px;
}

.modal-phone-camera {
    position: absolute;
    top: 10px;
    right: 45px;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #1e3a5f 40%, #0a1829 100%);
    border-radius: 50%;
    border: 2px solid rgba(100, 100, 100, 0.5);
}

.modal-phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.modal-phone-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-phone-bottom {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    z-index: 11;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.5);
    z-index: 10001;
}

.modal-close:hover {
    background: var(--secondary-color);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.modal-loading .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-info {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    text-align: center;
    white-space: nowrap;
}

.modal-info p {
    margin: 0;
    font-size: 16px;
}

.modal-info strong {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .modal-phone {
        width: 320px;
        height: 640px;
        border-radius: 40px;
        padding: 15px;
    }

    .modal-phone-notch {
        width: 160px;
        height: 28px;
    }

    .modal-phone-screen {
        border-radius: 32px;
    }

    .modal-info {
        font-size: 14px;
        padding: 10px 20px;
    }
}

