/* ==========================================
   WebsiteServers.lk - Custom Stylesheet
   Modern & Responsive Design
   ========================================== */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --dark-color: #1a1a2e;
    --darker-color: #16213e;
    --light-color: #f8f9fa;
    --text-dark: #2d3748;
    --text-light: #718096;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* === NAVIGATION === */
.navbar {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--darker-color) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.btn {
    background: var(--primary-color);
    color: #ffffff !important;
    padding: 0.5rem 1.5rem !important;
}

.nav-link.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--darker-color) 100%);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

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

.hero-title {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: backwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: backwards;
}

.hero-features {
    animation: fadeInUp 0.8s ease 0.6s;
    animation-fill-mode: backwards;
}

.hero-features .badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-image {
    animation: fadeInRight 0.8s ease 0.4s;
    animation-fill-mode: backwards;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--darker-color) 100%);
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* === SECTION STYLES === */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* === FEATURE CARDS === */
.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* === PRICING CARDS === */
.plan-card,
.pricing-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.plan-card:hover,
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.plan-card.featured,
.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.plan-card.featured:hover,
.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.badge-popular {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-header,
.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3,
.pricing-header h4 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.plan-price,
.price {
    text-align: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.2rem;
    color: var(--text-light);
    vertical-align: super;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    color: var(--text-light);
    font-size: 1rem;
}

.plan-features,
.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.plan-features li,
.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.plan-features li:last-child,
.pricing-features li:last-child {
    border-bottom: none;
}

.plan-features i,
.pricing-features i {
    margin-right: 0.5rem;
    width: 20px;
}


/* === STATS SECTION === */
.stats-section {
    background: linear-gradient(135deg, #2e4b7c, #324ba0);
    color: #ffffff;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--darker-color) 100%);
    position: relative;
    overflow: hidden;
}

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

.cta-section .btn {
    position: relative;
    z-index: 3;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

/* === CONTACT CARDS === */
.contact-info-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* === ABOUT PAGE STYLES === */
.story-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.story-card h4 {
    margin-bottom: 1rem;
}

.why-card {
    padding: 2rem;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
}

.value-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.value-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.infra-card {
    padding: 2rem;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

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

.cert-card {
    padding: 2rem;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.testimonial-card .stars {
    margin-bottom: 1rem;
}

.customer-info {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

/* === TERMS PAGE === */
.terms-nav .nav-link {
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.terms-nav .nav-link:hover,
.terms-nav .nav-link.active {
    border-left-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary-color);
}

.terms-content h2 {
    color: var(--dark-color);
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.terms-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-box {
    border-left: 4px solid var(--primary-color);
}

/* === SUPPORT CARDS === */
.support-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

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

.feature-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--darker-color) 100%);
    color: rgba(255, 255, 255, 0.8);
}

.footer h5,
.footer h6 {
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

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

/* === BUTTONS === */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--primary-color);
}

/* === FORMS === */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* === ACCORDION === */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: #ffffff;
    color: var(--dark-color);
    font-weight: 500;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

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

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

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .plan-card.featured,
    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* === UTILITIES === */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== Alert Styling ===== */



        .alert {
            border-radius: 15px;
            padding: 15px 20px;
            margin-bottom: 20px;
            display: none;
            animation: slideDown 0.3s ease-out;
        }

        .alert.show {
            display: block;
        }
        
        @keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.fade-out {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
