:root {
    --primary-color: #00594C; /* Teal Green */
    --primary-light: #00796B; /* Lighter Teal */
    --secondary-color: #D4AF37; /* Gold */
    --text-color: #333333;
    --text-light: #666666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Source Sans Pro', 'Noto Sans SC', sans-serif;
    --card-shadow: 0 10px 30px rgba(0, 89, 76, 0.08);
    --card-shadow-hover: 0 20px 40px rgba(0, 89, 76, 0.15);
}

/* Bootstrap Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent scrollbar shift */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: background-color 0.3s ease, padding-top 0.3s ease, padding-bottom 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
}

.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 51, 102, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #E5C048 0%, #D4AF37 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Modern Hero Section */
.hero-section {
    background: radial-gradient(circle at top right, #004d99 0%, #003366 100%);
    color: var(--white);
    padding: 120px 0 80px; /* Reduced top/bottom padding */
    min-height: 400px; /* Reduced min-height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Specific Home Hero Styles - to avoid affecting other pages */
#home-hero {
    background: radial-gradient(circle at 70% 30%, #004d99 0%, #001529 100%);
    padding: 130px 0 90px; /* Reduced padding again for smaller height */
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Abstract background shapes for home hero */
#home-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(80px);
    animation: pulse 10s ease-in-out infinite;
}

#home-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(80px);
    animation: pulse 15s ease-in-out infinite reverse;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

#home-hero .hero-text-content {
    position: relative;
    z-index: 2;
}

#home-hero h1 {
    font-size: 3.8rem; /* Slightly smaller font size */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #ffffff;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#home-hero .lead {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 90%;
    line-height: 1.6;
}

#home-hero .btn-gold {
    padding: 15px 40px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

#home-hero .btn-outline-light {
    border-width: 2px;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.05);
    transition: all 0.3s;
}

#home-hero .btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

#home-hero .hero-image-wrapper {
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

#home-hero .hero-image-wrapper img {
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: float 6s ease-in-out infinite;
}

#home-hero .hero-image-wrapper:hover img {
    transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.02);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-5deg) rotateX(2deg);
    }
    50% {
        transform: translateY(-20px) rotateY(-5deg) rotateX(2deg);
    }
    100% {
        transform: translateY(0px) rotateY(-5deg) rotateX(2deg);
    }
}

/* Decorative Background Elements */
.hero-bg-shape {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00aaff 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Modern Features Section */
.section-header {
    margin-bottom: 5rem;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(0, 51, 102, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-card-modern {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.feature-card-modern:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(0, 51, 102, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.feature-card-modern:hover .icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-desc {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* Home Core Features Specific Styles (Scoped) */
#home-core-features {
    background: #f8f9fa;
    position: relative;
    padding: 100px 0;
}

#home-core-features .section-title {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

#home-core-features .section-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -1.5px;
    position: relative;
    display: inline-block;
}

#home-core-features .section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--secondary-color);
    margin: 20px auto 0;
    border-radius: 10px;
}

#home-core-features .section-title p {
    font-size: 1.25rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

#home-core-features .feature-box {
    background: #fff;
    padding: 3.5rem 2rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#home-core-features .feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00594C;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    border-radius: 30px;
}

#home-core-features .feature-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s ease;
    z-index: -1;
}

#home-core-features .feature-box:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 51, 102, 0.25);
    border-color: rgba(255,255,255,0.1);
}

#home-core-features .feature-box:hover::before {
    opacity: 1;
}

#home-core-features .feature-box:hover::after {
    opacity: 1;
    transform: scale(1);
}

#home-core-features .icon-container {
    width: 100px;
    height: 100px;
    margin: 0 0 2rem 0;
    background: linear-gradient(135deg, rgba(0, 89, 76, 0.08) 0%, rgba(0, 89, 76, 0.03) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00594C;
    font-size: 3.5rem;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

#home-core-features .feature-box:hover .icon-container {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#home-core-features h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    transition: color 0.4s ease;
    position: relative;
    z-index: 2;
}

#home-core-features .feature-box:hover h4 {
    color: #fff;
}

#home-core-features p {
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 90%;
    transition: color 0.4s ease;
    position: relative;
    z-index: 2;
}

#home-core-features .feature-box:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #002244 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

/* Footer */
footer {
    background: linear-gradient(to bottom, #001529 0%, #000c19 100%);
    color: #e2e8f0;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

footer h5 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 0.8rem;
}

footer a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    color: #94a3b8;
}

.footer-contact-item i {
    color: var(--secondary-color);
    width: 24px;
    height: 24px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer-contact-item:hover i {
    background: var(--secondary-color);
    color: #000;
}

footer .social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

footer .social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

footer hr.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 3rem 0 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .feature-card-modern {
        padding: 2rem 1.5rem;
    }
}

/* 
   -------------------------------------------------------------------------
   Solutions Preview Section - Redesign (Light Modern Theme)
   Scoped to #solutions-preview to avoid side effects
   -------------------------------------------------------------------------
*/

#solutions-preview {
    /* Subtle light gradient background that fits with existing site */
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    color: var(--text-color);
    padding: 100px 0;
}

/* Background animated shapes - lighter and more subtle */
#solutions-preview .solution-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.6;
}

#solutions-preview .shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    /* Soft Primary Blue */
    background: radial-gradient(circle, rgba(0, 51, 102, 0.08) 0%, transparent 70%);
    animation: pulse 12s infinite ease-in-out;
}

#solutions-preview .shape-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    /* Soft Gold */
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: pulse 15s infinite ease-in-out reverse;
}

/* Cards Styles - Clean White Cards */
#solutions-preview .card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#solutions-preview .card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.12); /* Soft blue shadow */
    border-color: rgba(0, 51, 102, 0.1);
    z-index: 2;
}

#solutions-preview .card-img-top {
    height: 240px !important;
    object-fit: cover;
    transition: transform 0.6s ease;
}

#solutions-preview .card:hover .card-img-top {
    transform: scale(1.05);
}

#solutions-preview .card-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: #ffffff;
}

#solutions-preview .card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

#solutions-preview .card-title i {
    color: var(--primary-color) !important;
    font-size: 1.2rem;
    background: rgba(0, 51, 102, 0.08);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
}

#solutions-preview .card:hover .card-title i {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#solutions-preview .card:hover .card-body {
    background: #00594C;
}

#solutions-preview .card:hover .card-title {
    color: #ffffff;
}

#solutions-preview .card:hover .card-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

#solutions-preview .card-text {
    color: var(--text-light) !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Study Sidebar Styles */
#studySidebar .list-group-item {
    color: var(--text-color);
    transition: all 0.2s ease;
}

#studySidebar .list-group-item:hover,
#studySidebar .list-group-item.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

#studySidebar .list-group-item i {
    transition: all 0.2s ease;
}

#studySidebar .list-group-item:hover i,
#studySidebar .list-group-item.active i {
    color: #ffffff !important;
}
.animate-float-slow {
    animation: float-y 6s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-y 5s ease-in-out infinite reverse;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

.perspective-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.transform-style-3d {
    transform: scale(1.15); /* 放大 15% 且移除旋转使其正面朝向 */
    transition: transform 0.5s ease-out;
}

.perspective-container:hover .transform-style-3d {
    transform: scale(1.18); /* 悬浮时轻微放大 */
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Green Button */
.btn-outline-custom-green {
    color: #00594C;
    border-color: #00594C;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom-green:hover {
    background-color: #00594C;
    color: #ffffff;
    border-color: #00594C;
}

.text-custom-green {
    color: #148D59 !important;
}
