/* ============================================
   SabahCloud - Custom Styles
   Brand: SabahCloud.com
   Colors: Deep Blue (#1a365d), Teal (#0891b2), Gold (#f59e0b)
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --primary: #1a365d;
    --primary-light: #2a4a7f;
    --primary-dark: #0f2440;
    --secondary: #0891b2;
    --secondary-light: #06b6d4;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
    --shadow-hover: 0 8px 40px rgba(26, 54, 93, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --border-light: #e2e8f0;
}

/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    padding-top: 76px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

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

a:hover {
    color: var(--secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(26, 54, 93, 0.06);
    color: var(--primary) !important;
}

/* ===== Section Padding ===== */
.section-padding {
    padding: 100px 0;
}

/* ===== Hero Section ===== */
.min-vh-75-hero {
    min-height: 75vh;
}

.hero-section {
    background: #ffffff;
    color: var(--text-dark);
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section .display-4 {
    font-size: 3.2rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-section .lead {
    font-size: 1.2rem;
    color: var(--text-muted) !important;
}

.hero-section .badge {
    background: rgba(26, 54, 93, 0.06);
    color: var(--primary);
    font-size: 0.85rem;
    padding: 8px 16px;
}

.hero-section h3 {
    font-size: 2rem;
    color: var(--text-dark);
}

.hero-section small {
    color: var(--text-muted) !important;
}

.hero-section .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.hero-section .btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.25);
    transform: translateY(-2px);
}

.hero-section .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-section .btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration .bi-cloud-sun-fill {
    opacity: 0.08;
    font-size: 8rem;
    color: var(--primary);
}

.floating-card {
    position: absolute;
    background: var(--white);
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.3rem;
    color: var(--primary);
}

.card-1 { top: 20%; left: 10%; animation-delay: 0s; }
.card-2 { top: 50%; right: 5%; animation-delay: 0.5s; }
.card-3 { bottom: 20%; left: 20%; animation-delay: 1s; }
.card-4 { bottom: 20%; right: 10%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ===== Buttons ===== */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 28px;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

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

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

.hero-section .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
}

.hero-section .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.hero-section .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.hero-section .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* ===== Page Header ===== */
.page-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 80px 0 60px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.page-header .text-muted {
    color: var(--text-muted) !important;
}

/* ===== Service Card ===== */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(26, 54, 93, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(8, 145, 178, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.08), rgba(8, 145, 178, 0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.service-features li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* ===== Service Detail Page ===== */
.service-detail-icon i {
    color: var(--primary);
}

.service-showcase img {
    width: 100%;
    height: auto;
}

/* ===== Stat Card ===== */
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 54, 93, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ===== Testimonial Card ===== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(26, 54, 93, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card .stars i {
    font-size: 1rem;
    margin-right: 2px;
}

.testimonial-card p {
    font-style: italic;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== Pricing Card ===== */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
    border-color: var(--secondary);
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-header {
    padding: 36px 28px 24px;
    border-bottom: 1px solid rgba(26, 54, 93, 0.08);
}

.pricing-price {
    margin: 16px 0;
}

.pricing-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.pricing-price .price-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.best-for {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
}

.pricing-features {
    padding: 24px 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(26, 54, 93, 0.05);
}

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

.pricing-features li.not-included {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.pricing-footer {
    padding: 0 28px 36px;
}

/* ===== Addon Card ===== */
.addon-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(26, 54, 93, 0.05);
    text-align: center;
}

.addon-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.addon-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.08), rgba(8, 145, 178, 0.08));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.addon-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ===== Mission Card ===== */
.mission-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 54, 93, 0.05);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ===== Value Card ===== */
.value-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(26, 54, 93, 0.05);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.value-card i {
    color: var(--primary);
}

/* ===== Contact Form ===== */
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid rgba(26, 54, 93, 0.1);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 54, 93, 0.05);
}

.contact-info-card h6 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-card a {
    color: var(--text-dark);
}

.contact-info-card a:hover {
    color: var(--secondary);
}

.whatsapp-cta {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
}

/* ===== Accordion (FAQ) ===== */
.accordion-item {
    border: 1px solid rgba(26, 54, 93, 0.08);
    border-radius: var(--radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 20px 24px;
    font-size: 1rem;
}

.accordion-button:not(.collapsed) {
    background: rgba(8, 145, 178, 0.05);
    color: var(--primary);
}

.accordion-body {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.cta-section .btn-light {
    font-weight: 600;
}

.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== Error Page ===== */
.error-section {
    background: var(--bg-light);
}

.error-code span {
    font-size: 8rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Footer ===== */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 60px 0 30px;
}

.footer .text-muted {
    color: var(--text-muted) !important;
}

.footer h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer h5 i {
    color: var(--accent);
}

.footer h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.footer .contact-info li {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.footer .contact-info li i {
    color: var(--accent);
    margin-right: 8px;
}

.footer .contact-info li a {
    color: var(--text-dark);
    font-weight: 500;
}

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

.footer .social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(26, 54, 93, 0.06);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer hr {
    border-color: var(--border-light);
    margin: 30px 0;
}

.footer .text-center p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-section .display-4 {
        font-size: 2.2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .floating-card {
        display: none;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .min-vh-75-hero {
        min-height: auto;
    }
    
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-section .col-lg-7 {
        padding-top: 0.75rem;
    }
    
    .hero-section .display-4 {
        font-size: 1.8rem;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .hero-section h3 {
        font-size: 1.5rem;
    }
    
    .hero-section .d-flex.flex-wrap.gap-4.mt-4.pt-2 {
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
        padding-top: 0 !important;
        justify-content: center;
    }
    
    .hero-section .d-flex.flex-wrap.gap-4.mt-4.pt-2 > div {
        flex: 0 0 auto;
        min-width: 0;
    }
    
    .hero-section .d-flex.flex-wrap.gap-4.mt-4.pt-2 small {
        font-size: 0.75rem;
    }
    
    .stat-card {
        padding: 20px !important;
    }
    
    .stat-card h2 {
        font-size: 1.5rem;
    }
    
    .pricing-price .price {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .service-icon i {
        font-size: 1.4rem;
    }
    
    .addon-icon {
        width: 44px;
        height: 44px;
    }
    
    .addon-icon i {
        font-size: 1.2rem;
    }
    
    .page-header {
        padding: 60px 0 45px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding-bottom: 30px;
    }
    
    .hero-section .display-4 {
        line-height: 1.35;
    }
    
    .hero-section .lead {
        font-size: 1.05rem;
    }
    
    .hero-section h3 {
        font-size: 1.5rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .page-header {
        padding: 50px 0 35px;
    }
    
    .page-header h1 {
        font-size: 1.7rem;
    }
    
    .pricing-card,
    .pricing-card.popular {
        transform: none !important;
    }
    
    .pricing-header {
        padding: 24px 20px 16px;
    }
    
    .pricing-features {
        padding: 16px 20px;
    }
    
    .pricing-footer {
        padding: 0 20px 28px;
    }
    
    .pricing-price .price {
        font-size: 1.8rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 28px 20px;
    }
    
    .stat-card h2 {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .error-code span {
        font-size: 5rem;
    }
    
    .accordion-button {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 0 18px 16px;
    }
}

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

[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
