/* CSS Custom Properties for Gradient Theme */
:root {
    --gradient-primary: linear-gradient(135deg, #4158D0 0%, #C850C0 50%, #FFCC70 100%);
    --gradient-secondary: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-primary: #4158D0;
    --color-secondary: #C850C0;
    --color-accent: #FFCC70;
}

body{
    font-family: 'Microsoft YaHei', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Particle Background Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4158D0 100%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Icon Styling with Gradient */
.mai-icon{
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    margin-right: 20px;
    box-shadow: 0 4px 15px rgba(65, 88, 208, 0.4);
    transition: all 0.3s ease;
}

.mai-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(65, 88, 208, 0.6);
}

/* Navbar with Glassmorphism */
.navbar{
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1000;
}

.navbar-default{
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
}

.navbar-default:hover {
    background: rgba(255, 255, 255, 0.15);
}

.navbar-default .navbar-brand {
    font-size: 30px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    height: 70px;
    line-height: 35px;
    padding:0;
    transition: all 0.3s ease;
}

.navbar-default .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-default .navbar-nav>li>a {
    font-size: 16px;
    color: #fff;
    height: 70px;
    line-height: 35px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-default .navbar-nav>li>a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-default .navbar-nav>li>a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.navbar-default .navbar-nav>li>a:hover::after {
    width: 80%;
}

.navbar-toggle{
    margin-top: 17px;
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggle .icon-bar {
    background-color: #fff;
}

/* Banner Section with Enhanced Styling */
.banner{
    text-align:center;
    color: #fff;
    background:url(../images/banner.jpg);
    background-size:100% 100%;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(65, 88, 208, 0.8) 0%, rgba(200, 80, 192, 0.6) 50%, rgba(255, 204, 112, 0.4) 100%);
    z-index: 1;
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-weight: bold;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.banner p {
    font-size: 18px;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s ease;
}

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

.lvjing{
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    padding: 80px 0;
}

/* About Us Section with 3D Card Effects */
#bbs{
    padding: 80px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

#bbs h2 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#bbs .col-md-4{
    padding: 15px;
    perspective: 1000px;
}

#bbs .col-md-4 a {
    display: block;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

#bbs .col-md-4:hover a {
    transform: translateY(-15px) rotateY(5deg) scale(1.05);
    box-shadow: 0 20px 60px rgba(65, 88, 208, 0.4);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 204, 112, 0.5);
}

#bbs a{
    color: #fff;
    text-decoration: none;
}

#bbs img{
    margin: 0 auto 20px;
    transition: all 0.5s ease;
    filter: drop-shadow(0 4px 15px rgba(65, 88, 208, 0.3));
}

#bbs .col-md-4:hover img {
    transform: scale(1.1) rotateZ(5deg);
    filter: drop-shadow(0 8px 25px rgba(200, 80, 192, 0.5));
}

#bbs h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin: 20px 0;
}

#bbs p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* HTML5 + Bootstrap Sections with Glassmorphism */
#html5{
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
}

#html5, #bootstrap{
    padding: 80px 0;
}

#html5 h2, #bootstrap h2{
    font-weight: bold;
    color: #fff;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

#html5 h3, #bootstrap h3 {
    color: #fff;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin-bottom: 25px;
}

#html5 p, #bootstrap p{
    line-height: 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

#html5 img, #bootstrap img {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(65, 88, 208, 0.3);
    transition: all 0.5s ease;
}

#html5 img:hover, #bootstrap img:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 60px rgba(200, 80, 192, 0.5);
}

#bootstrap {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

/* Course Section */
#course{
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    padding: 80px 0;
    text-align: center;
}

#course h2{
    font-weight: bold;
    padding-bottom: 60px;
    color: #fff;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#course .col-md-3{
    margin-bottom: 20px;
}

.course {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.5s ease;
    overflow: hidden;
}

.course:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(65, 88, 208, 0.4);
    border-color: rgba(255, 204, 112, 0.5);
}

#course .btn{
    background: transparent;
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
    border-radius: 25px;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 10px 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#course .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

#course .btn:hover::before {
    left: 0;
}

#course .btn:hover{
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(65, 88, 208, 0.5);
}

.course .case-img{
    width:100%;
    height:auto;
    transition: all 0.5s ease;
}

.course:hover .case-img {
    transform: scale(1.1);
}

/* App Section */
#app{
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

#app h2{
    font-weight: bold;
    padding-bottom: 30px;
    color: #fff;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#app .btn{
    margin: 10px 0;
    background: var(--gradient-secondary);
    border: none;
    border-radius: 25px;
    padding: 10px 35px;
    transition: all 0.3s ease;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.3);
}

#app .btn:hover{
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.5);
}

/* Contact Section with Glassmorphism */
#contact{
    background: url("../images/contact-bg.jpg") no-repeat;
    background-size: cover;
    color: #ffffff;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(65, 88, 208, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    z-index: 0;
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact h2{
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#contact p{
    line-height:28px;
    margin-bottom:10px;
    font-size: 16px;
}

#contact .form-control {
    border: none;
    border-radius: 10px;
    height: 50px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

#contact .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(255, 204, 112, 0.3);
}

#contact .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#contact textarea.form-control{
    height: auto;
}

#contact input[type="submit"]{
    background: var(--gradient-primary);
    color: #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    border-radius: 25px;
    padding: 12px 40px;
    box-shadow: 0 5px 20px rgba(65, 88, 208, 0.4);
}

#contact input[type="submit"]:hover{
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(200, 80, 192, 0.6);
}

#contact address p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#contact .glyphicon {
    background: var(--gradient-primary);
    padding: 10px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(65, 88, 208, 0.3);
}

/* Footer with Glassmorphism */
footer{
    font-weight: 400;
    text-align: center;
    padding:30px;
    color:#fff;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 204, 112, 0.8);
}

/* Glow and Pulse Animations */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(65, 88, 208, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(200, 80, 192, 0.8);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #particles-js {
        opacity: 0.5;
    }

    .navbar-default .navbar-nav>li>a {
        height: auto;
        line-height: normal;
        padding: 15px;
    }

    #bbs .col-md-4:hover a {
        transform: translateY(-10px) scale(1.02);
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }
}
