:root {
    --primary: #3c55ab;
    --primary-dark: #2a3d7d;
    --primary-light: #5a73c9;
    --secondary: #00c2ff;
    --accent: #ff6b6b;
    --text-main: #1a1a1a;
    --text-light: #555555;
    --bg-light: #f9fbfd;
    --bg-white: #ffffff;
    --bg-off-white: #f4f7f6;
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --box-radius: 16px;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

/* Header Redesign */
.header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(60, 85, 171, 0.12);
    padding: 8px 0;
    transition: var(--transition);
    top: 0 !important;
    position: fixed !important;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header.scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(60, 85, 171, 0.25);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav .menu li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.nav .menu li a:hover,
.nav .menu li a.active {
    color: #3c55ab;
}

.nav .menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3c55ab;
    transition: var(--transition);
}

.nav .menu li a:hover::after,
.nav .menu li a.active::after {
    width: 100%;
}

.btn-quote {
    background: var(--gradient-main);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(60, 85, 171, 0.3);
    transition: var(--transition);
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(60, 85, 171, 0.4);
}

/* Hero Section */
.hero-slider-section {
    position: relative;
    height: 90vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: 80px;
    /* offset for fixed header */
}

.main-swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    z-index: 10;
    position: relative;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(60, 85, 171, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(60, 85, 171, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #1a1a1a, #3c55ab);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-image-wrapper {
    position: relative;
    z-index: 5;
}

.hero-image-main {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Services */
.services-section {
    background-color: var(--bg-white);
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--box-radius);
    padding: 0;
    /* Removed padding */
    border: 1px solid #eee;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* ... (keep other styles if needed, but we are overwriting the block) ... */

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-main);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.03;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card:hover::before {
    height: 100%;
}

.service-image-wrapper {
    height: 280px;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Back to cover, but centered. If user wants "complete image", use contain. User said "complete image we can show" -> contain? */
    /* Let's use contain to ensure full visibility without cutting, as requested. */
    object-fit: cover;
    /* Wait, user said "all clients should be in single line" -> that was portfolio. */
    /* For services: "all images are cutting". */
    /* If I use 'contain', I get bars. If I use 'cover', I get crop. */
    /* User said "adjust as per image". Suggests flexible height or contain. */
    /* Let's try cover but with object-position center. */
    /* Actually, "complete image we can show" -> Contain is the only way to guarantee NO cutting. */
    /* But 'cover' looks better. Let's try 'cover' first with better wrapper. */
    /* Wait, the user specifically complained about "cutting". */
    /* I will use object-fit: cover; but add object-position: center; */
    /* AND make the wrapper taller: 240px. */
}

/* Override with contain if requested specifically, but 'cover' is standard for cards. */
/* Let's stick to cover for now but remove the padding that was squeezing it. */

.service-content {
    padding: 30px;
    /* Restore padding here */
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-link {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* Portfolio / Clients */
.portfolio-section {
    background-color: var(--bg-off-white);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 30px;
    background: transparent;
    border: 2px solid rgba(60, 85, 171, 0.2);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.portfolio-item {
    border-radius: var(--box-radius);
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: var(--shadow-sm);
    /* group: hover removed */
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
    padding: 20px;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    transition: var(--transition);
    color: white;
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

/* Testimonials */
.testimonials-section {
    background-image: linear-gradient(to right, var(--bg-white) 50%, var(--bg-off-white) 50%);
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--box-radius);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

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

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Blog */
.blog-card {
    background: #fff;
    border-radius: var(--box-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

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

.blog-image {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-main);
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--primary);
}

/* Footer */
.footer-redesign {
    background: linear-gradient(180deg, #0d1529 0%, #0a0e1a 100%);
    color: #a0aec0;
    padding: 80px 0 0;
    border-top: 3px solid #3c55ab;
    position: relative;
}

.footer-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3c55ab, #7b96ff, #3c55ab, transparent);
}

.footer-widget-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3c55ab, #7b96ff);
    border-radius: 2px;
}

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

.footer-links a {
    color: #8899bb;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
}

.footer-links a::before {
    content: '›';
    font-size: 1.1rem;
    color: #3c55ab;
    transition: transform 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-links a:hover::before {
    transform: translateX(2px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0;
    margin-top: 50px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8899bb;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: #3c55ab;
    border-color: #3c55ab;
    color: #fff;
    transform: translateY(-3px);
}