:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --dark: #0b132b;
    --light: #f8f9fa;
    --success: #06d6a0;
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --gradient-accent: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fefefe;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

section {
    padding: 80px 0;
}

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover;
    opacity: 0.08;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 400;
}

.highlight-text {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(76, 201, 240, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.profile-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--gradient-accent);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
    border: 3px solid white;
}

.btn-primary-custom {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
    font-size: 1.05rem;
}

.btn-primary-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.5);
    color: white;
}

.btn-outline-custom {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 1.05rem;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: white;
    transform: translateY(-3px);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 70px;
    position: relative;
    text-align: center;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

.card-custom {
    border: none;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    overflow: hidden;
    background: white;
}

.card-custom:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.skill-badge {
    display: inline-block;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 70px;
    margin: 6px;
    font-weight: 500;
    border: 1px solid rgba(67, 97, 238, 0.2);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.skill-badge:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 35px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}

.project-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    background: white;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-box {
    text-align: center;
    padding: 35px 25px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
}

.stats-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.counter {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.testimonial-card {
    border-radius: 18px;
    padding: 35px;
    background: white;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 5.5rem;
    color: rgba(67, 97, 238, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(67, 97, 238, 0.03);
}

.contact-info:hover {
    background: rgba(67, 97, 238, 0.08);
    transform: translateX(5px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary);
    font-size: 1.3rem;
}

.floating-button {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.floating-button:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 30px rgba(67, 97, 238, 0.6);
}

footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-right: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 45px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(67, 97, 238, 0.4);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Testimonial Styles */
.testimonial-carousel {
    position: relative;
}

.testimonial-card-wrapper {
    padding: 20px;
}

.testimonial-card-enhanced {
    background: white;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary);
}

.testimonial-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.18);
}

.quote-icon {
    position: absolute;
    top: 35px;
    right: 35px;
    color: rgba(67, 97, 238, 0.1);
    font-size: 3.2rem;
}

.testimonial-content {
    margin-bottom: 35px;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #555;
    font-style: italic;
}

.testimonial-client {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 28px;
}

.client-image {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 25px;
    border: 4px solid #f0f4ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info h5 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.2rem;
}

.client-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
}

.client-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge.bg-primary-light {
    background-color: rgba(67, 97, 238, 0.12);
    color: var(--primary);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.badge.bg-secondary-light {
    background-color: rgba(58, 12, 163, 0.12);
    color: var(--secondary);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.badge.bg-success-light {
    background-color: rgba(6, 214, 160, 0.12);
    color: #06a37c;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Carousel Customization */
.carousel-indicators {
    bottom: -60px;
}

.carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    margin: 0 7px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 55px;
    height: 55px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -30px;
}

.carousel-control-next {
    right: -30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Client Logos */
.client-logos {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
}

.logo-track {
    display: flex;
    animation: scrollLogos 35s linear infinite;
    gap: 50px;
    padding: 0 25px;
}

.logo-item {
    flex: 0 0 auto;
    text-align: center;
    width: 160px;
}

.logo-img {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.logo-text {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0;
    font-size: 1rem;
}

/* Auto Scroll Controls */
.auto-scroll-controls {
    margin-top: 40px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Sub Section */
#sub .card {
    background: var(--gradient-primary);
    border: none;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.25);
}

#sub li {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 10px;
}

#sub li i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.9);
}

#sub .fa-user-tie {
    font-size: 140px;
    color: var(--primary);
    opacity: 0.9;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-160px * 4 - 50px * 4));
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .profile-image {
        width: 190px;
        height: 190px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .logo-item {
        width: 140px;
    }
    
    .logo-img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .profile-image {
        width: 170px;
        height: 170px;
    }
    
    .testimonial-card-enhanced {
        padding: 30px 25px;
    }
    
    .client-image {
        width: 65px;
        height: 65px;
        margin-right: 20px;
    }
    
    .logo-item {
        width: 120px;
    }
    
    .logo-img {
        width: 70px;
        height: 70px;
    }
    
    @keyframes scrollLogos {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 4 - 50px * 4));
        }
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }
    
    .btn-primary-custom, .btn-outline-custom {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .counter {
        font-size: 2.8rem;
    }
}