/* Responsive Styles - Mobile First */

/* Extra Small Devices (320px and up) */
@media (max-width: 320px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 44px;
        min-width: 44px;
    }

    .section {
        padding: 2rem 0;
    }

    input, textarea, select {
        min-height: 44px;
    }
}

/* Small Devices (480px and up) */
@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 6px;
        width: 100%;
        text-align: center;
        min-height: 44px;
        transition: var(--transition-smooth);
    }

    .btn:active {
        transform: scale(0.98);
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-group .btn {
        width: 100%;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-list li {
        padding: 0.6rem 0;
        padding-left: 1.25rem;
        font-size: 0.95rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    input, textarea, select {
        min-height: 44px;
        font-size: 16px;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .testimonial-item {
        padding: 1.25rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .team-member {
        padding: 1rem;
    }

    .member-image {
        width: 80px;
        height: 80px;
    }
}

/* Medium Devices (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .btn-large {
        padding: 0.85rem 1.6rem;
        font-size: 1rem;
        min-height: 46px;
    }

    .services-grid,
    .case-studies-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-template-columns: 1fr;
        margin-right: 60px;
    }
}

/* Large Devices (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .case-studies-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        min-height: 44px;
    }

    .contact-layout {
        grid-template-columns: 2fr 1fr;
        gap: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        margin-right: 60px;
    }
}

/* Extra Large Devices (1024px and up) */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .section {
        padding: 6rem 0;
    }

    .btn {
        min-height: 44px;
    }
}

/* Ultra Wide (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
        padding: 0 3rem;
    }

    .section {
        padding: 7rem 0;
    }
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
    animation: fadeInDown 0.8s ease;
    position: relative;
    overflow: hidden;
   
    
   
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: float 6s ease infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-slider {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}



.page-header {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--text-dark) 100%);
    color: #fff;
    animation: slideInDown 0.6s ease;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.1) 50%, transparent 70%);
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: #cbd5e1;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

/* Forms */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: #fff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--primary-color);
}

.form-group.checkbox {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
}

/* Testimonials */
.testimonial-item {
    display: none;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.testimonial-item.active {
    display: block;
    animation: slideInUp 0.5s ease;
}

.testimonial-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
}

.testimonial-author {
    text-align: center;
}

.testimonial-author strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA Section */
/* ===============================
   Call To Action Section
================================ */

.cta-section {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        rgba(197, 199, 204, 0.85) 100%
    );
    color: #ffffff;
    padding: 4.5rem 2rem;
    margin: 4rem 0;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: ctaReveal 0.7s ease both;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover lift */
.cta-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

/* ===============================
   Decorative Glow
================================ */

.cta-section::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 420px;
    height: 420px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.18),
        transparent 65%
    );
    pointer-events: none;
}

.cta-section::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -25%;
    width: 460px;
    height: 460px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.12),
        transparent 70%
    );
    pointer-events: none;
}

/* ===============================
   Content
================================ */

.cta-section h2 {
    position: relative;
    z-index: 1;
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
}

.cta-section p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===============================
   Animation
================================ */

@keyframes ctaReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===============================
   Responsive
================================ */

@media (max-width: 480px) {
    .cta-section {
        padding: 3.5rem 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

/* ===============================
   Blog Card – Advanced Version
================================ */

.blog-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform 0.45s cubic-bezier(.4,0,.2,1),
        box-shadow 0.45s cubic-bezier(.4,0,.2,1),
        border-color 0.4s ease;
    animation: blogCardReveal 0.7s ease backwards;
}

/* Hover lift + glow */
.blog-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: var(--primary-color);
    box-shadow:
        0 30px 70px rgba(37, 99, 235, 0.18),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ===============================
   Blog Image
================================ */

.blog-image {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(.4,0,.2,1);
}

/* image zoom */
.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

/* light sweep overlay */
.blog-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25),
        transparent 70%
    );
    transform: translateX(-120%);
    transition: transform 0.9s ease;
    z-index: 1;
}

.blog-card:hover .blog-image::before {
    transform: translateX(120%);
}

/* dark gradient overlay */
.blog-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(0, 0, 0, 0.18)
    );
    z-index: 0;
}

/* ===============================
   Category Badge
================================ */

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45);
    z-index: 2;
    animation: floatBadge 3.5s ease-in-out infinite;
}

/* ===============================
   Content
================================ */

.blog-content {
    padding: 1.6rem 1.5rem 1.8rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-color);
}

/* ===============================
   Meta
================================ */

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-meta span {
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease;
}

.blog-meta span:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===============================
   Read More
================================ */

.read-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--accent-color)
    );
    transition: width 0.35s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more:hover::after {
    width: 100%;
}

/* ===============================
   Animations
================================ */

@keyframes blogCardReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatBadge {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* ===============================
   Responsive
================================ */

@media (max-width: 640px) {
    .blog-image {
        min-height: 200px;
    }

    .blog-content {
        padding: 1.4rem;
    }
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
    animation: fadeInUp 0.6s ease backwards;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: float 3s ease infinite;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
}

.stat-card:hover .stat-label {
    color: var(--primary-color);
}

/* Case Study Cards */
.case-study-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
    display: block;
    animation: fadeInUp 0.6s ease backwards;
    border: 1px solid var(--border-color);
}

.case-study-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.case-info {
    padding: 1.5rem;
}

.case-metrics {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.case-metrics span {
    background: linear-gradient(135deg, var(--light-bg), #f1f5f9);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.case-metrics span:hover {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: #fff;
    border-color: var(--primary-color);
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-up {
    animation: slideInUp 0.6s ease;
}

/* Smooth Scrolling */
html {
    scroll-padding-top: 80px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-right: 60px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
        border-radius: 8px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .case-metrics {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {

    .cta-group {
        flex-direction: column;
    }

    .page-header {
        padding: 1.5rem 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .hero::before {
        width: 300px;
        height: 300px;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .blog-card,
    .case-study-card {
        border-radius: 8px;
    }
}

/* =====================================
   ADVANCED PLACEHOLDER – PREMIUM STYLE
   (Same Color Format Preserved)
===================================== */

.slider-placeholder,
.case-placeholder,
.blog-placeholder,
.image-placeholder,
.video-placeholder,
.case-image {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--accent-color) 100%
    );
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    min-height: 300px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: heroReveal 0.9s cubic-bezier(.22,1,.36,1);
}

/* ===============================
   SOFT DEPTH OVERLAY
================================ */

.slider-placeholder::before,
.case-placeholder::before,
.blog-placeholder::before,
.image-placeholder::before,
.video-placeholder::before,
.case-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0)
        );
    z-index: -1;
}

/* ===============================
   LIGHT SWEEP ANIMATION
================================ */

.slider-placeholder::after,
.case-placeholder::after,
.blog-placeholder::after,
.image-placeholder::after,
.video-placeholder::after,
.case-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: skewX(-20deg);
    animation: lightSweep 3.5s infinite;
    pointer-events: none;
}

/* ===============================
   HOVER INTERACTION
================================ */

.slider-placeholder:hover,
.image-placeholder:hover,
.video-placeholder:hover {
    transform: translateY(-8px) scale(1.035);
    box-shadow: var(--shadow-xl);
}

.slider-placeholder:hover::after,
.image-placeholder:hover::after {
    animation-duration: 1.6s;
}

/* ===============================
   TEXT DEPTH EFFECT
================================ */

.slider-placeholder span,
.slider-placeholder,
.case-placeholder,
.blog-placeholder {
    text-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ===============================
   ANIMATIONS
================================ */

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(24px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes lightSweep {
    0% {
        left: -120%;
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        left: 140%;
        opacity: 0;
    }
}

/* ===============================
   FLOATING HERO FEEL (OPTIONAL)
================================ */

.hero-slider .slider-item.active .slider-placeholder {
    animation:
        heroReveal 0.9s cubic-bezier(.22,1,.36,1),
        floatHero 6s ease-in-out infinite;
         margin-top: 60px;
}

@keyframes floatHero {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 480px) {
    .slider-placeholder,
    .case-placeholder,
    .blog-placeholder,
    .image-placeholder,
    .video-placeholder {
        min-height: 200px;
        border-radius: 14px;
        font-size: 1.1rem;
    }
}
