/* /css/page-web-development.css */

/* --- Web Dev Hero Section --- */
.wd-hero-section {
    background-color: #6221DB; /* Theme purple color */
    min-height: 50vh;
    padding: 10rem 0 6rem 0;
    display: flex;
    align-items: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
    overflow-x: hidden; /* Prevent horizontal scrollbars during animation */
}

.wd-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/texture-overlay.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

.wd-hero-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.wd-hero-subheading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.wd-hero-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.wd-hero-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .wd-hero-section {
        min-height: auto;
        padding: 8rem 0 4rem 0;
        text-align: center;
    }

    .wd-hero-image-col {
        margin-top: 3rem;
    }

    .wd-hero-subheading {
        font-size: 2.25rem;
    }
}

/* --- Pricing Section --- */
.pricing-section {
    background-color: #f8f9fa;
}

.pricing-section-title {
    font-weight: 700;
    margin-bottom: 4rem;
}

.pricing-card {
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.pricing-card .card-body {
    padding: 2.5rem;
}

.package-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.package-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-wrapper {
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.price-prefix {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.payment-frequency {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #55409b;
}

.highlight-text {
    background-color: rgba(0,0,0,0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.pricing-checklist {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pricing-checklist svg {
    flex-shrink: 0;
    margin-top: 0.2em;
}

.pricing-card .hero-button,
.pricing-card .btn-light-theme {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.pricing-card .hero-button::after,
.pricing-card .btn-light-theme::after {
    display: none;
}

/* --- Specific Package Styling --- */
.pricing-section .row > div:nth-child(1) .pricing-card {
    background-color: #ffffff;
    color: #343a40;
}
.pricing-section .row > div:nth-child(1) .pricing-card .price {
    color: #000000;
}
.pricing-section .row > div:nth-child(1) .pricing-card .pricing-checklist svg {
    color: #6221DB;
}

.pricing-section .row > div:nth-child(2) .pricing-card {
    background-color: #6221DB;
    color: #ffffff;
    border-color: #fecf0a;
}
.pricing-section .row > div:nth-child(2) .pricing-card::before {
    content: 'Most Popular';
    position: absolute;
    top: 1.5rem;
    right: -2.5rem;
    background-color: #fecf0a;
    color: #00042A;
    padding: 0.25rem 2.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
}
.pricing-section .row > div:nth-child(2) .pricing-card .price-wrapper .price-prefix,
.pricing-section .row > div:nth-child(2) .pricing-card .price,
.pricing-section .row > div:nth-child(2) .pricing-card .package-title {
    color: #ffffff;
}
.pricing-section .row > div:nth-child(2) .pricing-card .payment-frequency {
    color: #fecf0a;
}
.pricing-section .row > div:nth-child(2) .pricing-card .highlight-text {
    background-color: rgba(255,255,255,0.1);
}
.pricing-section .row > div:nth-child(2) .pricing-card .pricing-checklist svg {
    color: #ffffff;
}

.pricing-section .row > div:nth-child(3) .pricing-card {
    background-color: #00042A;
    color: #ffffff;
}
.pricing-section .row > div:nth-child(3) .pricing-card .price-wrapper .price-prefix,
.pricing-section .row > div:nth-child(3) .pricing-card .price,
.pricing-section .row > div:nth-child(3) .pricing-card .package-title {
    color: #ffffff;
}
.pricing-section .row > div:nth-child(3) .pricing-card .payment-frequency {
    color: #fecf0a;
}
.pricing-section .row > div:nth-child(3) .pricing-card .highlight-text {
    background-color: rgba(255,255,255,0.1);
}
.pricing-section .row > div:nth-child(3) .pricing-card .pricing-checklist svg {
    color: #ffffff;
}

/* --- Hero Scroll Animations --- */
.wd-hero-heading, .wd-hero-subheading, .wd-hero-description, .wd-hero-image-col {
    transition: transform 1s ease-out, opacity 1s ease-out;
}

/* Staggered animation delays */
.wd-hero-subheading { transition-delay: 0.1s; }
.wd-hero-description { transition-delay: 0.2s; }

/* Initial (hidden) states */
.wd-hero-heading, .wd-hero-description,
.wd-hero-subheading, .wd-hero-image-col {
    opacity: 0;
}

.wd-hero-heading, .wd-hero-description {
    transform: translateX(-100%);
}

.wd-hero-subheading, .wd-hero-image-col {
    transform: translateX(100%);
}

/* Visible states */
.wd-hero-heading.slide-in-left,
.wd-hero-description.slide-in-left {
    transform: translateX(0);
    opacity: 1;
}

.wd-hero-subheading.slide-in-right,
.wd-hero-image-col.slide-in-right {
    transform: translateX(0);
    opacity: 1;
}