/*
Theme Name: Hello Web Designer
Theme URI: https://hellowebdesigner.com/
Author: Hello Web Designer
Author URI: https://hellowebdesigner.com/
Description: Custom, lightweight, SEO-optimized, and conversion-focused WordPress theme for web design and SEO services in Kurunegala, Sri Lanka. Built with Bootstrap 5.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hello-web-designer
*/

/* -------------------------------------------------------------
 * Custom Design System & CSS Variables
 * ------------------------------------------------------------- */
:root {
    --primary-color: #0d6efd;
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    --accent-gradient: linear-gradient(135deg, #6610f2 0%, #0d6efd 100%);
    --bg-dark: #0f172a;
    --bg-light: #f8f9fa;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px -15px rgba(13, 110, 253, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------
 * Base Styles & Typography
 * ------------------------------------------------------------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* -------------------------------------------------------------
 * Typography / Styling Utilities
 * ------------------------------------------------------------- */
.text-gradient-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-dark-hero {
    background-color: var(--bg-dark);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.bg-dark-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* -------------------------------------------------------------
 * Header & Navbar
 * ------------------------------------------------------------- */
.navbar-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    position: relative;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
}

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

/* -------------------------------------------------------------
 * Buttons & Interactions
 * ------------------------------------------------------------- */
.btn-custom-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
    color: #ffffff;
}

.btn-custom-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 1px solid rgba(13, 110, 253, 0.2);
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-custom-secondary:hover {
    background: rgba(13, 110, 253, 0.05);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * Cards & Grids
 * ------------------------------------------------------------- */
.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(13, 110, 253, 0.15);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary-gradient);
    color: #ffffff;
}

/* Price Cards */
.price-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.price-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
}

@media (max-width: 991px) {
    .price-card.featured {
        transform: scale(1);
    }
}

.price-card.featured .badge-featured {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

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

@media (max-width: 991px) {
    .price-card.featured:hover {
        transform: translateY(-8px);
    }
}

/* Accordion Custom Styling */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);
}

.accordion-button {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--primary-color);
    box-shadow: none;
}

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

/* -------------------------------------------------------------
 * Blog Card & Styling
 * ------------------------------------------------------------- */
.blog-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
}

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

.blog-card-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    background-color: var(--bg-light);
}

.blog-card-body {
    padding: 1.75rem;
}

/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
