:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7ff;
    color: #333;
    line-height: 1.6;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.navbar-brand:hover {
    color: var(--secondary-color);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    padding: 15px 0;
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px;
    color: var(--dark-color);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

/* Section Title */
.section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header .divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #4a6bff, #6c5ce7);
    margin: 15px auto;
}

/* Features Section */
.features-section {
    background-color: white;
}

.section-header h2 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header .lead {
    color: var(--secondary-color);
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(74, 107, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 30px;
}

.feature-card h3 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Configurations Section */
.config-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.config-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 30px;
    color: white;
}

.ssh-card .config-icon {
    background: linear-gradient(45deg, #2d3436, #636e72);
}

.v2ray-card .config-icon {
    background: linear-gradient(45deg, #0984e3, #74b9ff);
}

.sl-card .config-icon {
    background: linear-gradient(45deg, #e17055, #fab1a0);
}

.udp-card .config-icon {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    position: relative;
}

.badge-udp {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff7675;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.config-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #2d3436;
}

.config-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.config-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.config-features i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn {
    padding: 10px 25px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-ssh {
    background: #2d3436;
    color: white;
}

.btn-v2ray {
    background: #0984e3;
    color: white;
}

.btn-sl {
    background: #e17055;
    color: white;
}

.btn-udp {
    background: #6c5ce7;
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .config-card {
        padding: 20px;
    }
    
    .config-title {
        font-size: 1.3rem;
    }
}

/* Tutorials Section */
.tutorial-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-10px);
}

.tutorial-video {
    position: relative;
}

.tutorial-video img {
    width: 100%;
    height: auto;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tutorial-content {
    padding: 20px;
}

.tutorial-content h3 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.tutorial-content p {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Contact Section */
.contact-form .form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item .icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(74, 107, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-content h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

/* Config Cards */
.config-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.config-card:hover {
    transform: translateY(-5px);
}

.config-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.config-body {
    padding: 20px;
}

.config-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.config-info i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.config-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.config-actions .btn {
    flex: 1;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
}

.social-icons a {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer ul li a {
    color: var(--gray);
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.btn-link {
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    transition: .3s;
}

.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.copy-right a{
    color: white;
    text-decoration: underline;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header .lead {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}


/*** Config Style ***/
/* Header Styles */
.section-header {
    position: relative;
    margin-bottom: 3rem;
}

.text-gradient {
    background: linear-gradient(45deg, #4a6bff, #6c5ce7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.divider {
    width: 80px;
    height: 3px;
    margin: 1rem auto;
}

.bg-gradient {
    background: linear-gradient(45deg, #4a6bff, #6c5ce7);
}

/* Card Styles */
.config-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.ssh-card {
    border-top: 3px solid #4a6bff;
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ff7675;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* Image Container */
.img-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.img-container img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

/* Content Styles */
.config-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3436;
    display: flex;
    align-items: center;
}

.config-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.config-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.config-features i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    color: #4a6bff;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

.bg-success {
    background-color: #00b894 !important;
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 184, 148, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0);
    }
}

/* Dropdown Styles */
.action-dropdown .dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
}

.dropdown-menu {
    border: none !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.icon-wrapper {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Styles */
.btn-gradient {
    background: linear-gradient(45deg, #4a6bff, #6c5ce7);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.3);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .config-card {
        padding: 15px;
    }
    
    .img-container img {
        height: 140px;
    }
    
    .card-badge {
        font-size: 10px;
        right: -35px;
        padding: 3px 25px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .config-features li {
        font-size: 0.9rem;
    }
}
