/* ====== Animated Game Intro Overlay ====== */
#intro-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 40%, #ffb300 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(.77,0,.18,1);
    opacity: 1;
    pointer-events: all;
}
#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}
#intro-3d {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem auto;
    background: transparent;
}
#intro-text {
    text-align: center;
    color: #fff;
    animation: fadeInUp 1.2s;
}
#intro-text h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.7rem;
    letter-spacing: 1.2px;
}
#intro-text .intro-sub {
    font-size: 1.18rem;
    color: #ffe082;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}
@media (max-width: 600px) {
    #intro-3d {
        width: 120px;
        height: 120px;
    }
    #intro-text h2 {
        font-size: 1.2rem;
    }
}
/* ====== Glassmorphism & Modern Styles ====== */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 40%, #ffb300 100%);
    min-height: 100vh;
    color: #f4f6fb;
    overflow-x: hidden;
}
.glass {
    background: rgba(255,255,255,0.13);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 18px;
    border: 1.5px solid rgba(255,255,255,0.18);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.2rem 0 1rem 0;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.8s;
}
.logo-title {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(26,35,126,0.13);
    background: #fff;
    padding: 3px;
}
.logo-title h1 {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(26,35,126,0.18);
}
nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.13rem;
    padding: 0.5rem 1.3rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, font-size 0.2s;
}
nav a:hover {
    color: #1a237e;
    background: #ffb300;
    box-shadow: 0 2px 12px rgba(255,179,0,0.18);
    font-size: 1.18rem;
}
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
}
.hero-bg-animated {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background: radial-gradient(circle at 60% 40%, #ffb300 0%, #3949ab 40%, #1a237e 100%);
    opacity: 0.22;
    animation: heroGradientMove 12s ease-in-out infinite alternate;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 5rem 1rem 4rem 1rem;
    animation: fadeInUp 1.2s, floatY 7s ease-in-out infinite alternate;
}
.hero-content h2 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 4px 24px rgba(26,35,126,0.18);
}
.gradient-text {
    background: linear-gradient(90deg, #ffb300 30%, #fff 60%, #3949ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.35rem;
    color: #e3e6fd;
    margin-bottom: 2.2rem;
    text-shadow: 0 2px 12px rgba(26,35,126,0.13);
}
.hero-btn, .big-btn {
    background: linear-gradient(90deg, #ffb300 60%, #1a237e 100%);
    color: #fff;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(26,35,126,0.13);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s, box-shadow 0.3s;
    animation: pulseGlow 2.5s infinite alternate;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}
.hero-btn:hover, .big-btn:hover {
    background: linear-gradient(90deg, #1a237e 60%, #ffb300 100%);
    box-shadow: 0 8px 32px rgba(255,179,0,0.18), 0 6px 18px rgba(26,35,126,0.13);
    transform: translateY(-2px) scale(1.06);
}
.hero-btn::after, .big-btn::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: width 0.4s, height 0.4s, opacity 0.4s;
}
.hero-btn:active::after, .big-btn:active::after {
    width: 180%;
    height: 180%;
    opacity: 1;
    transition: 0s;
}
.features-section {
    margin: 3rem 0 2.5rem 0;
    text-align: center;
}
.section-title {
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 2.2rem;
    color: #fff;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 12px rgba(26,35,126,0.13);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(26,35,126,0.13);
    transition: transform 0.18s, box-shadow 0.18s;
    border: 2px solid #e3e6fd33;
    background: rgba(255,255,255,0.09);
    min-height: 320px;
    animation: fadeInUp 1.2s;
}
.feature-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 2px 12px rgba(26,35,126,0.13));
}
.feature-card h4 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 0.7rem;
    font-weight: 800;
}
.feature-card p {
    color: #e3e6fd;
    font-size: 1.08rem;
}
.feature-card:hover {
    transform: translateY(-12px) scale(1.07) rotate(-1deg);
    box-shadow: 0 16px 40px 0 rgba(255,179,0,0.18), 0 12px 32px rgba(26,35,126,0.16);
    border: 2px solid #ffb300;
    animation: cardGlow 1.2s;
}
.about-section {
    margin: 3rem auto 2.5rem auto;
    max-width: 800px;
    padding: 2.5rem 2rem;
    text-align: center;
    background: rgba(255,255,255,0.10);
}
.about-highlight {
    font-size: 1.25rem;
    font-weight: 900;
    display: block;
    margin-bottom: 1rem;
}
.contact-section {
    margin: 3rem auto 2.5rem auto;
    max-width: 500px;
    padding: 2.5rem 2rem;
    background: rgba(255,255,255,0.10);
    text-align: center;
}
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.1rem;
}
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.95rem 2.5rem 0.95rem 1rem;
    border: 1.5px solid #bdbdbd;
    border-radius: 10px;
    font-size: 1.13rem;
    resize: none;
    background: rgba(255,255,255,0.85);
    color: #1a237e;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(26,35,126,0.06);
}
.input-group input:focus,
.input-group textarea:focus {
    border: 1.5px solid #ffb300;
    outline: none;
    box-shadow: 0 2px 16px rgba(255,179,0,0.13);
}
.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.input-icon img {
    width: 22px;
    height: 22px;
    opacity: 0.7;
}
.contact-btn {
    background: linear-gradient(90deg, #1a237e 60%, #ffb300 100%);
    color: #fff;
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.18rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px rgba(26,35,126,0.10);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    animation: pulseGlow 2.5s infinite alternate;
}
.contact-btn:hover {
    background: linear-gradient(90deg, #ffb300 60%, #1a237e 100%);
    box-shadow: 0 8px 32px rgba(255,179,0,0.18), 0 6px 18px rgba(26,35,126,0.13);
    transform: translateY(-2px) scale(1.06);
}
#formMessage {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.13rem;
    color: #fff;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0 1rem 0;
}
.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.footer-social a {
    display: inline-block;
    transition: transform 0.18s;
}
.footer-social a:hover {
    transform: scale(1.18) rotate(-8deg);
}
footer {
    text-align: center;
    background: rgba(255,255,255,0.13);
    color: #fff;
    border-top: 1.5px solid #bdbdbd;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 -2px 8px rgba(26,35,126,0.04);
    margin-top: 2.5rem;
}
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .main-header {
        padding: 0.7rem 0 0.7rem 0;
    }
    .logo-title h1 {
        font-size: 1.5rem;
    }
    .logo {
        width: 40px;
        height: 40px;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0 0.5rem;
    }
    .features-section, .about-section, .contact-section {
        padding: 1.2rem 0.5rem;
    }
    .feature-card {
        padding: 1.2rem 0.5rem;
        min-height: 220px;
    }
    .hero-content {
        padding: 2.5rem 0.2rem 2rem 0.2rem;
    }
}
::-webkit-scrollbar {
    width: 8px;
    background: rgba(26,35,126,0.08);
}
::-webkit-scrollbar-thumb {
    background: #ffb300;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3949ab;
}
/* ====== Animations ====== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes heroGradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
@keyframes floatY {
    0% { transform: translateY(0);}
    100% { transform: translateY(-18px);}
}
@keyframes pulseGlow {
    0% { box-shadow: 0 2px 12px rgba(26,35,126,0.10), 0 0 0 0 rgba(255,179,0,0.18);}
    100% { box-shadow: 0 2px 24px rgba(255,179,0,0.22), 0 0 16px 8px rgba(255,179,0,0.08);}
}
@keyframes cardGlow {
    0% { box-shadow: 0 4px 24px rgba(26,35,126,0.10);}
    100% { box-shadow: 0 16px 40px 0 rgba(255,179,0,0.18), 0 12px 32px rgba(26,35,126,0.16);}
}
