/* ==========================================================================
   Udhsri Technologies — Pages Stylesheet
   Covers: portfolio, testimonial, blog, and all 8 service sub-pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL / RESET
   -------------------------------------------------------------------------- */
:root {
    --primary:    #0d6efd;
    --primary-dk: #0a58ca;
    --accent:     #fd7e14;
    --dark:       #1a1a2e;
    --mid-dark:   #16213e;
    --light-bg:   #f8f9fa;
    --secondary:  #6c757d;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* --------------------------------------------------------------------------
   2. PAGE HERO  (shared base — hero colour per page via modifier classes)
   -------------------------------------------------------------------------- */
.page-hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Default hero gradient (portfolio / testimonial / blog) */
.page-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Service page hero colour overrides */
.page-hero--web-design   { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.page-hero--seo          { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f4c00 100%); }
.page-hero--social-media { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1d1d6b 100%); }
.page-hero--graphic      { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #2d0057 100%); }
.page-hero--video        { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #4a0000 100%); }
.page-hero--photo        { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #004a4a 100%); }
.page-hero--gbp          { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #003d00 100%); }
.page-hero--google-ads   { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #003366 100%); }

/* Decorative circle — ::before variant */
.page-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

/* ::after variant used on blog hero */
.page-hero--blog::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(253, 126, 20, 0.1);
    border-radius: 50%;
    top: -50px;
    right: 10%;
}

/* Testimonial hero gets the warm circle on the bottom-left instead */
.page-hero--testimonial::before {
    width: 500px;
    height: 500px;
    background: rgba(253, 126, 20, 0.1);
    top: auto;
    right: auto;
    bottom: -200px;
    left: -100px;
}

/* Portfolio hero keeps the top-right circle (default) */
.page-hero--portfolio::before {
    width: 400px;
    height: 400px;
    background: rgba(13, 110, 253, 0.15);
    top: -100px;
    right: -100px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
}

/* Breadcrumb inside hero */
.page-hero .breadcrumb-item a {
    color: #adb5bd;
    text-decoration: none;
}
.page-hero .breadcrumb-item.active   { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: #6c757d; }

/* --------------------------------------------------------------------------
   3. SECTION BADGE  (shared pill label above headings)
   -------------------------------------------------------------------------- */
.section-badge {
    display: inline-block;
    background: #e8f0fe;
    color: var(--primary);
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   4. FLOATING ELEMENTS  (WhatsApp, Social bar, Scroll-to-top)
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    width: 55px;
    height: 55px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

.floating-social {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.3s;
}
.social-icon:hover { transform: scale(1.1); color: #fff; }

.social-icon.facebook  { background: #3b5998; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.twitter   { background: #1da1f2; }
.social-icon.youtube   { background: #ff0000; }

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.4);
}
.scroll-top-btn.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   5. FOOTER
   -------------------------------------------------------------------------- */
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 8px;
}
.footer-links a:hover { color: #fff; }

.contact-info li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    list-style: none;
}
.contact-info li i { color: var(--primary); margin-right: 8px; }
.contact-info a    { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.contact-info a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   6. CTA STRIP  (shared blue gradient banner)
   -------------------------------------------------------------------------- */
.cta-strip {
    background: linear-gradient(135deg, var(--primary), var(--primary-dk));
    padding: 60px 0;
}

/* --------------------------------------------------------------------------
   7. SERVICE PAGES — Feature Cards, Why Cards, Process Steps
   -------------------------------------------------------------------------- */
.feature-card {
    border-radius: 15px;
    padding: 30px 25px;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    border: none;
    border-top: 4px solid var(--primary);
    margin-bottom: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e8f0fe, #cfe2ff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h5 { font-weight: 700; margin-bottom: 10px; }
.feature-card p  { color: #666; font-size: 0.9rem; line-height: 1.7; }

.why-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.why-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.why-card h6 { font-weight: 700; margin-bottom: 5px; }
.why-card p  { font-size: 0.85rem; color: #666; margin: 0; }

.process-step { text-align: center; padding: 20px; }
.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 15px;
}
.process-step h6 { font-weight: 700; margin-bottom: 8px; }
.process-step p  { font-size: 0.85rem; color: #666; }

/* --------------------------------------------------------------------------
   8. PORTFOLIO PAGE
   -------------------------------------------------------------------------- */
.filter-btn {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 5px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

.portfolio-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    margin-bottom: 30px;
}
.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}
.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.portfolio-card:hover .portfolio-img img { transform: scale(1.1); }

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.85), rgba(253, 126, 20, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay a {
    color: #fff;
    font-size: 2rem;
    margin: 0 10px;
    transition: transform 0.3s;
    text-decoration: none;
}
.portfolio-overlay a:hover { transform: scale(1.2); }

.portfolio-body { padding: 20px; }

.portfolio-category {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.portfolio-body h5 { font-weight: 700; margin: 5px 0; }

.tag-badge {
    background: #e8f0fe;
    color: var(--primary);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 50px;
    margin: 2px;
    display: inline-block;
    font-weight: 500;
}

/* Portfolio — Video cards */
.video-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.video-card:hover { transform: translateY(-8px); }

.video-thumb {
    position: relative;
    height: 220px;
    background: var(--dark);
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 65px; height: 65px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}
.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

/* Portfolio — Stats */
.stats-section { background: linear-gradient(135deg, var(--primary), var(--primary-dk)); }
.stat-item { text-align: center; padding: 30px 0; }
.stat-number { font-size: 3rem; font-weight: 800; color: #fff; }
.stat-label  { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; font-weight: 500; }

/* --------------------------------------------------------------------------
   9. TESTIMONIAL PAGE
   -------------------------------------------------------------------------- */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: none;
    border-bottom: 4px solid var(--primary);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.13);
}

.quote-icon {
    font-size: 4rem;
    color: #e8f0fe;
    position: absolute;
    top: 15px; right: 25px;
    line-height: 1;
}

.stars { color: #ffc107; font-size: 1.1rem; margin-bottom: 15px; }

.testimonial-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.client-info { display: flex; align-items: center; }

.client-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary);
}

.client-avatar-placeholder {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.client-name { font-weight: 700; font-size: 1rem; color: var(--dark); margin: 0; }
.client-role { font-size: 0.82rem; color: var(--secondary); margin: 0; }

.service-tag {
    display: inline-block;
    background: #e8f0fe;
    color: var(--primary);
    font-size: 0.72rem;
    padding: 3px 12px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 8px;
}

/* Featured testimonial block */
.featured-testimonial {
    background: linear-gradient(135deg, var(--primary), var(--primary-dk));
    border-radius: 20px;
    padding: 50px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.featured-testimonial::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    top: -10px; left: 20px;
}

.featured-text   { font-size: 1.2rem; line-height: 1.8; font-style: italic; }
.featured-stars  { color: #ffc107; font-size: 1.3rem; }

/* Testimonial — Stats row */
.stats-row { background: linear-gradient(135deg, var(--primary), var(--primary-dk)); }

/* --------------------------------------------------------------------------
   10. BLOG PAGE
   -------------------------------------------------------------------------- */
.blog-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: none;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

.blog-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.blog-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.blog-card:hover .blog-img img { transform: scale(1.08); }

.blog-category {
    position: absolute;
    top: 15px; left: 15px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}
.cat-webdesign { background: var(--primary); }
.cat-seo       { background: #28a745; }
.cat-social    { background: #e83e8c; }
.cat-photoshop { background: #001f5c; }
.cat-premiere  { background: #9b0000; }
.cat-bootstrap { background: #7952b3; }
.cat-marketing { background: var(--accent); }

.blog-body { padding: 25px; }

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.blog-meta span { font-size: 0.78rem; color: var(--secondary); }
.blog-meta i    { color: var(--primary); margin-right: 4px; }

.blog-body h5 {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 10px;
    transition: color 0.3s;
}
.blog-card:hover .blog-body h5 { color: var(--primary); }
.blog-body p { font-size: 0.88rem; color: #666; line-height: 1.7; }

.read-more-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}
.read-more-link:hover { gap: 10px; }

/* Featured blog */
.featured-blog {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    margin-bottom: 40px;
    background: #fff;
}
.featured-blog .blog-img { height: 380px; }
.featured-blog .blog-body { padding: 40px; }
.featured-blog h2 { font-weight: 800; font-size: 1.7rem; color: var(--dark); }

/* Blog sidebar */
.sidebar-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 30px;
}
.sidebar-card h5 {
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.recent-post img {
    width: 65px; height: 65px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.recent-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
}
.recent-post-title:hover { color: var(--primary); }
.recent-post-date { font-size: 0.75rem; color: var(--secondary); }

.category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}
.category-list li a { color: #444; text-decoration: none; font-size: 0.9rem; }
.category-list li a:hover { color: var(--primary); }
.category-list li span {
    background: #e8f0fe;
    color: var(--primary);
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.tag-cloud a {
    display: inline-block;
    background: #f0f0f0;
    color: #444;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin: 3px;
    text-decoration: none;
    transition: all 0.3s;
}
.tag-cloud a:hover { background: var(--primary); color: #fff; }

.newsletter-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dk));
    border-radius: 15px;
    padding: 30px;
    color: #fff;
}
.newsletter-box h5 { font-weight: 700; margin-bottom: 10px; }
.newsletter-box input {
    border-radius: 8px;
    border: none;
    padding: 10px 15px;
    width: 100%;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}
.newsletter-box button { width: 100%; border-radius: 8px; }

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-radius: 8px;
    margin: 0 3px;
    font-weight: 500;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .page-hero { padding: 90px 0 60px; }
    .page-hero h1 { font-size: 2.2rem; }
    .floating-social { right: 15px; bottom: 80px; gap: 8px; }
    .social-icon { width: 36px; height: 36px; font-size: 0.85rem; }
    .whatsapp-float { right: 15px; bottom: 15px; width: 48px; height: 48px; font-size: 1.3rem; }
}

@media (max-width: 768px) {
    .page-hero { padding: 80px 0 50px; }
    .page-hero h1 { font-size: 1.9rem; }
    .featured-testimonial { padding: 35px 25px; }
    .featured-testimonial .featured-text { font-size: 1rem; }
    .featured-blog .blog-body { padding: 25px; }
    .stat-number { font-size: 2.2rem; }
    .filter-btn { padding: 6px 14px; font-size: 0.82rem; }
}

@media (max-width: 576px) {
    .page-hero h1 { font-size: 1.6rem; }
    .cta-strip h2 { font-size: 1.5rem; }
    .feature-card { padding: 25px 20px; }
    .testimonial-card { padding: 25px 20px; }
    .whatsapp-float { right: 12px; bottom: 12px; width: 44px; height: 44px; font-size: 1.2rem; }
    .floating-social { right: 12px; bottom: 70px; gap: 6px; }
    .social-icon { width: 34px; height: 34px; font-size: 0.8rem; }
}
