/* ===================================
   SRT Auth Tool Website - Complete Styles
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #4F9DF9;
    --primary-hover: #3A8BE5;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --dark-color: #212529;
    --secondary-color: #6C757D;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #DEE2E6;
    --card-border: #E9ECEF;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

/* ===================================
   Header/Navigation Styles
   =================================== */
#header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 15px 0;
}

.navbar-brand .brand-text {
    font-family: 'Questrial', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-color);
    padding: 10px 18px !important;
    position: relative;
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Navigation Button */
.btn-primary-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 8px rgba(79, 157, 249, 0.3);
    transition: var(--transition-smooth);
}

.btn-primary-nav:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 157, 249, 0.4);
    color: var(--white) !important;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===================================
   Hero Section Styles
   =================================== */
.hero-section {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 157, 249, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .text-primary {
    color: var(--primary-color) !important;
    position: relative;
    display: inline-block;
}

.hero-title .text-primary::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 400;
}

/* Hero CTA Button */
.btn-primary-hero {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 157, 249, 0.35);
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary-hero:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 157, 249, 0.45);
    color: var(--white);
}

/* Server Status Table */
.server-status-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-width: 550px;
}

.server-status-table .table {
    margin-bottom: 0;
}

.server-status-table thead th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: #495057;
    padding: 14px 18px;
    font-size: 14px;
    border-bottom: 2px solid var(--border-color);
}

.server-status-table tbody td {
    padding: 12px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--card-border);
    vertical-align: middle;
}

.server-status-table tbody tr:last-child td {
    border-bottom: none;
}

.server-status-table tbody tr:hover {
    background-color: rgba(79, 157, 249, 0.03);
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 1;
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* ===================================
   Clients/Brands Section Styles
   =================================== */
.clients-section {
    background-color: var(--white);
    padding: 60px 0;
}

.clients-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.client-logo {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* ===================================
   Services Section Styles
   =================================== */
.services-section {
    background-color: var(--white);
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 400;
    margin-top: 20px;
}

/* Service Card */
.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #64B5F6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition-base);
}

.service-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), #64B5F6);
}

.icon-wrapper i {
    font-size: 38px;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.service-card:hover .icon-wrapper i {
    color: var(--white);
    transform: scale(1.1);
}

.number-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(79, 157, 249, 0.3);
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===================================
   FAQ Section Styles
   =================================== */
.faq-section {
    background-color: var(--light-bg);
}

.faq-contact-text {
    font-size: 16px;
    color: var(--secondary-color);
}

.faq-contact-text strong {
    color: var(--primary-color);
    cursor: pointer;
}

.faq-contact-text strong:hover {
    text-decoration: underline;
}

.accordion-item {
    border: 1px solid var(--card-border);
    border-radius: 8px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    background-color: var(--white);
    padding: 18px 24px;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(79, 157, 249, 0.05);
    color: var(--primary-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234F9DF9'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: var(--secondary-color);
    line-height: 1.7;
    padding: 20px 24px;
    background-color: var(--white);
}

/* ===================================
   Footer Styles
   =================================== */
.footer-section {
    background-color: var(--light-bg);
    padding: 80px 0 30px;
}

.footer-brand-title {
    font-family: 'Questrial', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.8;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li a {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--secondary-color);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
}

.footer-menu li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-menu li a i {
    font-size: 10px;
    color: var(--primary-color);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--secondary-color);
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 16px;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(79, 157, 249, 0.3);
}

.social-icon.fa-facebook-f:hover { background-color: #1877F2; border-color: #1877F2; }
.social-icon.fa-x-twitter:hover { background-color: #000000; border-color: #000000; }
.social-icon.fa-linkedin-in:hover { background-color: #0A66C2; border-color: #0A66C2; }
.social-icon.fa-youtube:hover { background-color: #FF0000; border-color: #FF0000; }
.social-icon.fa-github:hover { background-color: #181717; border-color: #181717; }

/* Newsletter Section */
.newsletter-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.newsletter-form {
    gap: 10px;
}

.newsletter-form .form-control {
    border-radius: 8px;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: var(--transition-base);
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 157, 249, 0.1);
}

.btn-submit-newsletter {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.btn-submit-newsletter:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 157, 249, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--card-border);
}

.copyright {
    font-size: 14px;
    color: var(--secondary-color);
}

.copyright strong {
    color: var(--primary-color);
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links li {
    font-size: 13px;
}

.footer-bottom-links li a {
    color: var(--secondary-color);
    transition: var(--transition-base);
}

.footer-bottom-links li a:hover {
    color: var(--primary-color);
}

.footer-bottom-links li strong {
    color: var(--dark-color);
}

/* ===================================
   Telegram Modal Styles
   =================================== */
.telegram-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.telegram-logo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid rgba(40, 167, 69, 0.3);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
}

.telegram-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
}

.telegram-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.telegram-links p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.telegram-features {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-telegram {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4);
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.5);
    color: var(--white);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(79, 157, 249, 0.4);
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 157, 249, 0.5);
    color: var(--white);
}

/* ===================================
   Responsive Design
   =================================== */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 34px;
    }

    .service-card {
        padding: 35px 20px;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 50px;
    }

    .server-status-table {
        margin: 0 auto;
    }

    .hero-image {
        text-align: center;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .clients-slider {
        gap: 35px;
    }

    .client-logo {
        width: 100px;
        height: 70px;
    }

    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }

    .btn-primary-nav {
        display: block;
        margin-top: 15px;
        text-align: center;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .service-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .service-title {
        font-size: 20px;
    }

    .footer-section {
        padding: 60px 0 20px;
    }

    .footer-brand-title {
        font-size: 28px;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
        margin-top: 20px;
    }

    .btn-submit-newsletter {
        width: 100%;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 15px;
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    /* Server table responsive */
    .server-status-table {
        overflow-x: auto;
    }

    .server-status-table table {
        min-width: 450px;
    }
}

/* Extra Small Devices (575px and below) */
@media (max-width: 575px) {
    .hero-section {
        padding-top: 110px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn-primary-hero {
        padding: 12px 28px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .icon-wrapper i {
        font-size: 32px;
    }

    .number-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .clients-slider {
        gap: 25px;
    }

    .client-logo {
        width: 90px;
        height: 60px;
    }

    .telegram-modal-content {
        margin: 15px;
    }

    .telegram-title {
        font-size: 22px;
    }

    .btn-telegram {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    #header,
    .back-to-top,
    #telegramModal {
        display: none !important;
    }
}