/* ================================================
   SharedHosting.lk - Custom Styles
   Modern, Professional Design
   ================================================ */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== Root Variables ===== */
:root {
    --primary-color: #3e5981;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg,#a4aac9 0%, #4b73a2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    transition: var(--transition);
}

/* ===== Navigation ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    transition: var(--transition);
}

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

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===== Hero Section ===== */
.hero-section {
    background: var(--gradient-hero);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.bg-primary {
    background-color: #3e5981 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.1;
}

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

/* ===== Page Header ===== */
.page-header {
    background: var(--gradient-hero);
    padding-top: 120px;
    padding-bottom: 60px;
}

/* ===== Buttons ===== */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 15px;
    transition: var(--transition);
    overflow: hidden;
}

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

/* ===== Feature Cards ===== */
.feature-card {
    background: var(--white);
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

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

.feature-icon {
    display: inline-block;
}

.feature-icon-sm {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Pricing Cards ===== */
.pricing-card {
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid #e9ecef;
}

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

.pricing-card .card-header {
    border-radius: 20px 20px 0 0 !important;
}

.price-tag {
    padding: 1rem 0;
}

.pricing-card ul li {
    padding: 0.5rem 0;
}

/* ===== Tech Box ===== */
.tech-box {
    background: var(--white);
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.tech-box:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,...') no-repeat;
    background-size: cover;
    pointer-events: none;  /* ADD THIS LINE - This prevents the overlay from blocking clicks */
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;  /* Make sure content is above the overlay */
}

/* ===== Statistics ===== */
.stat-box {
    padding: 2rem;
}

/* ===== Footer ===== */
footer {
    margin-top: auto;
}

footer a:hover {
    color: var(--white) !important;
    text-decoration: underline !important;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* ===== Forms ===== */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    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(13, 110, 253, 0.25);
}

/* ===== Accordion ===== */
.accordion-button {
    font-weight: 600;
    border-radius: 10px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* ===== Badges ===== */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* ===== Images ===== */
img {
    max-width: 100%;
    height: auto;
}

.rounded-4 {
    border-radius: 20px !important;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

/* ===== Utilities ===== */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(13, 110, 253, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .page-header {
        padding-top: 100px;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* ===== Scroll Animations ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Loading States ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .cta-section,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 18pt;
    }
}

/* ===== Accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
    background: #0056b3;
    transform: translateY(-5px);
}

/* ===== Terms Page Specific Styles ===== */
.terms-content h2 {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.terms-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* ===== SEO-Friendly Semantic Elements ===== */
article, aside, details, figcaption, figure,
header, hgroup, menu, nav, section {
    display: block;
}
