/* =============================================================================
   PROFESSIONAL THUMBNAIL DESIGNER PORTFOLIO
   Enhanced Bootstrap UI/UX Design
   ============================================================================= */

/* ------------------- */
/* Custom Properties   */
/* ------------------- */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-hero: 'Montserrat', 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --border-radius: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------- */
/* Base Styles         */
/* ------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

/* ------------------- */
/* Typography          */
/* ------------------- */
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-word {
    position: relative;
    font-size: 1.2em;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: colorShift 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
    text-transform: uppercase;
    filter: brightness(1.2);
}

.highlight-word::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    animation: colorShift 3s ease-in-out infinite;
}

.highlight-word::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
    animation: colorShift 3s ease-in-out infinite;
}

@keyframes colorShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 107, 107, 0.4), 0 0 30px rgba(78, 205, 196, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 107, 107, 0.6), 0 0 40px rgba(78, 205, 196, 0.5), 0 0 50px rgba(69, 183, 209, 0.3);
    }
}

/* ------------------- */
/* Navigation          */
/* ------------------- */
.custom-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-navbar.scrolled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

/* Enhanced Brand Styling */
.enhanced-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.enhanced-brand:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.brand-icon {
    font-size: 1.8rem;
    color: #4ecdc4;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.enhanced-brand:hover .brand-icon {
    transform: rotate(15deg) scale(1.1);
    color: #45b7d1;
}

.brand-text {
    margin-right: 0.3rem;
    font-weight: 600;
}

.brand-highlight {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.enhanced-brand:hover .brand-highlight {
    background: linear-gradient(135deg, #45b7d1 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Navigation Links */
.enhanced-nav .enhanced-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.3rem;
    padding: 0.7rem 1.2rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.enhanced-nav .enhanced-link:hover,
.enhanced-nav .enhanced-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.enhanced-nav .enhanced-link i {
    transition: all 0.3s ease;
}

.enhanced-nav .enhanced-link:hover i {
    transform: scale(1.1);
    color: #4ecdc4;
}

/* Special CTA Link */
.cta-link {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-weight: 700;
}

.cta-link:hover {
    background: linear-gradient(135deg, #45b7d1, #667eea) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3) !important;
}

/* Enhanced Toggler */
.enhanced-toggler {
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.enhanced-toggler:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.enhanced-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

/* Mobile Responsive Enhancements */
@media (max-width: 991.98px) {
    .enhanced-brand {
        font-size: 1.5rem;
        padding: 0.3rem 0.8rem;
    }
    
    .enhanced-nav .enhanced-link {
        margin: 0.2rem 0;
        text-align: center;
    }
    
    .brand-icon {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }
    
    .hero-buttons .btn {
        margin: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 200px !important;
    }
    
    .hero-buttons .me-3 {
        margin-right: 0 !important;
    }
}

/* Mobile button alignment fixes */
@media (max-width: 991px) {
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }
    
    .hero-buttons .btn {
        margin: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 200px !important;
    }
    
    .hero-buttons .me-3 {
        margin-right: 0 !important;
    }
}

/* Fix for about section button alignment on mobile */
@media (max-width: 991px) {
    .about-buttons .btn {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    .about-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        gap: 0.75rem !important;
    }
    
    .hero-buttons .btn {
        width: 180px !important;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        gap: 0.5rem !important;
    }
    
    .hero-buttons .btn {
        width: 160px !important;
    }
}

/* ------------------- */
/* Hero Section        */
/* ------------------- */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 20px 0; /* Account for fixed navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-family: var(--font-hero);
    font-weight: 700;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: block;
    visibility: visible;
    opacity: 1;
}

.hero-content .lead {
    font-family: var(--font-hero);
    font-weight: 500;
}

.hero-stats {
    margin: 2rem 0;
}

.stat-number {
    font-family: var(--font-hero);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-hero);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hero-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.hero-buttons .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Image Animation */
.hero-image {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    width: 200px;
    height: 120px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatGentle 8s ease-in-out infinite;
    transform-origin: center center;
}

.floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.floating-card:hover img {
    transform: scale(1.1);
}

.floating-card.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 40%;
    right: 20%;
    animation-delay: 1.5s;
}

.floating-card.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 3s;
}

.floating-card.card-4 {
    top: 60%;
    right: 10%;
    animation-delay: 4.5s;
}

.floating-card.card-5 {
    top: 20%;
    right: 40%;
    animation-delay: 6s;
}

.floating-card.card-6 {
    bottom: 40%;
    right: 30%;
    animation-delay: 2s;
}

.floating-card.card-7 {
    top: 30%;
    left: 40%;
    animation-delay: 3.5s;
}

.floating-card.card-8 {
    bottom: 10%;
    right: 50%;
    animation-delay: 5s;
}

@keyframes floatGentle {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% { 
        transform: translateY(-15px) translateX(5px) rotate(1deg);
    }
    50% { 
        transform: translateY(-25px) translateX(0px) rotate(0deg);
    }
    75% { 
        transform: translateY(-15px) translateX(-5px) rotate(-1deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: inline-block;
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ------------------- */
/* Portfolio Section   */
/* ------------------- */
.portfolio-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(226, 232, 240, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(241, 245, 249, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-section .container {
    position: relative;
    z-index: 2;
}

.portfolio-section .section-title {
    color: var(--gray-800);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.portfolio-section .section-subtitle {
    color: var(--gray-600);
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 1rem 2rem;
    border: 2px solid rgba(100, 116, 139, 0.3);
    background: rgba(255, 255, 255, 0.8);
    color: var(--gray-700);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    box-shadow: var(--shadow-xl);
}

.portfolio-card .comparison-slider {
    flex: 1;
    min-height: 350px;
}

.portfolio-info {
    flex-shrink: 0;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.portfolio-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tags .badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ------------------- */
/* Comparison Slider   */
/* ------------------- */
.comparison-slider {
    position: relative;
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
    height: 350px;
    border-radius: var(--border-radius);
    background: var(--gray-100);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    background-clip: padding-box;
    display: block;
    width: 100%;
}

.comparison-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    /* transition: opacity 0.3s ease; */
}

/* .comparison-slider:hover::before {
    opacity: 1;
} */

.comparison-slider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0;
    /* transition: opacity 0.3s ease; */
}

/* .comparison-slider:hover::after {
    opacity: 0.1;
} */

/* Fix for image sizing and display issues */
.portfolio-card .comparison-slider {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.portfolio-card .comparison-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: none;
    max-height: none;
}

/* Ensure proper stacking of elements for normal before/after slider */
.comparison-slider .image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.comparison-slider .image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

/* Loading state for images */
.comparison-slider .image-before,
.comparison-slider .image-after {
    background: var(--gray-100);
    background-image: 
        linear-gradient(45deg, var(--gray-200) 25%, transparent 25%), 
        linear-gradient(-45deg, var(--gray-200) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, var(--gray-200) 75%), 
        linear-gradient(-45deg, transparent 75%, var(--gray-200) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.comparison-slider .image-before:not([src]),
.comparison-slider .image-after:not([src]) {
    background-color: var(--gray-200);
    opacity: 0.5;
}

/* Touch-friendly mobile enhancements */
@media (hover: none) and (pointer: coarse) {
    .handle-circle {
        width: 56px !important;
        height: 56px !important;
        border-width: 5px !important;
    }
    
    .slider-handle {
        width: 8px !important;
    }
    
    .image-label {
        font-size: 0.8rem;
        padding: 10px 18px;
    }
}

/* Focus states for accessibility */
.comparison-slider:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.comparison-slider:focus .handle-circle {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3),
                0 6px 20px rgba(0, 0, 0, 0.2),
                0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Performance optimizations */
.comparison-slider,
.image-after-wrapper,
.slider-handle {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth dragging indicator */
.comparison-slider.dragging {
    cursor: col-resize !important;
}

.comparison-slider.dragging .handle-circle {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 
                0 4px 15px rgba(0, 0, 0, 0.2),
                0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Enhanced blend effect during drag - REMOVED */

.image-before,
.image-after {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* transition: filter 0.3s ease; */
    position: relative;
}

/* Image after wrapper - REMOVED for normal slider implementation */
/* .image-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
} */

/* Blend overlay styles for merge system - UPDATED FOR NORMAL SLIDER */
.comparison-slider .image-before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* transition: opacity 0.3s ease; */
}

.comparison-slider .image-after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    /* transition: opacity 0.3s ease; */
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        var(--primary-color) 10%, 
        var(--primary-color) 90%, 
        rgba(255, 255, 255, 0.9) 100%);
    pointer-events: none;
    z-index: 4;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.comparison-slider:hover .slider-handle {
    width: 8px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.2);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 4px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: col-resize;
    z-index: 5;
}

.comparison-slider:hover .handle-circle {
    width: 52px;
    height: 52px;
    border-width: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2),
                0 3px 10px rgba(0, 0, 0, 0.15);
}

.handle-circle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    /* transition: opacity 0.3s ease; */
}

/* .comparison-slider:hover .handle-circle::before {
    opacity: 0.3;
} */

/* Labels for Before/After */

.image-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-label.before {
    right: 20px;
    background: rgba(59, 130, 246, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.image-label.after {
    left: 20px;
    background: rgba(168, 85, 247, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* .comparison-slider:hover .image-label {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.comparison-slider:hover .image-label.before {
    background: rgba(59, 130, 246, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.comparison-slider:hover .image-label.after {
    background: rgba(168, 85, 247, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
} */

/* Progress indicator for slider position with blend percentages */
.slider-progress {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 6;
    opacity: 0;
    /* transition: opacity 0.3s ease; */
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
}

.slider-progress .after-percent {
    color: #a855f7;
    font-weight: 700;
    order: 2;
}

.slider-progress .before-percent {
    color: #3b82f6;
    font-weight: 700;
    order: 1;
}

.slider-progress::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 60%;
    background: rgba(255, 255, 255, 0.3);
}

/* .comparison-slider:hover .slider-progress,
.comparison-slider.dragging .slider-progress {
    opacity: 1;
} */

/* Enhanced tooltips */
.comparison-slider .handle-circle::after {
    content: 'Drag to compare';
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    /* transition: opacity 0.3s ease; */
    pointer-events: none;
    z-index: 10;
}

/* .comparison-slider:hover .handle-circle::after {
    opacity: 1;
} */

/* .comparison-slider.dragging .handle-circle::after {
    opacity: 0;
} */

/* ------------------- */
/* About Section       */
/* ------------------- */
.about-section {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(226, 232, 240, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(241, 245, 249, 0.3) 50%, transparent 70%);
    pointer-events: none;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-section .section-title {
    color: var(--gray-800);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.about-section .lead {
    color: var(--gray-700);
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-section p {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-image-container {
    position: relative;
    display: inline-block;
}

.about-image-wrapper {
    position: relative;
    width: 350px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    max-width: 100%;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 1;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.experience-badge h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    color: var(--white);
}

.experience-badge p {
    font-size: 0.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.skills-section {
    margin-top: 2rem;
}

.skills-section h4 {
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(10px);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-item i {
    font-size: 1.4rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.skill-item:hover i {
    color: var(--secondary-color);
}

.skill-item span {
    color: var(--gray-700);
    font-weight: 500;
}

.skill-item:hover span {
    color: var(--gray-800);
}

.about-buttons .btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-buttons .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.about-buttons .btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.about-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.about-buttons .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.about-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ------------------- */
/* Services Section    */
/* ------------------- */
.services-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 100px 0;
    font-family: 'Montserrat', sans-serif;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.services-section .section-title {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.services-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.service-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    transform: scale(1.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-card.featured h4,
.service-card.featured p,
.service-card.featured .service-features li {
    color: var(--white);
}

.service-card.featured .service-price .price {
    color: var(--white);
}

.service-card.featured .service-price .period {
    color: rgba(255, 255, 255, 0.8);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.3);
    animation: pulse 2s infinite;
    font-family: 'Montserrat', sans-serif;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
    transition: var(--transition);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.service-card h4 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    text-align: left;
}

.service-features li {
    padding: 0.75rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.service-features li:hover {
    padding-left: 2.5rem;
    color: var(--primary-color);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.service-price {
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.service-price .price {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.service-price .period {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
}

/* ------------------- */
/* Testimonials Section */
/* ------------------- */
.testimonials-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="testimonial-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23667eea" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23testimonial-pattern)"/></svg>');
    opacity: 0.5;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
}

/* Featured Testimonial */
.featured-testimonial {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 4rem 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
    margin-bottom: 3rem;
}

.testimonial-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.bg-pattern {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.3"/><circle cx="80" cy="80" r="3" fill="white" opacity="0.2"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.4"/><circle cx="10" cy="70" r="2" fill="white" opacity="0.3"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

.featured-testimonial blockquote {
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 3rem;
    font-family: var(--font-heading);
    position: relative;
}

.testimonial-author-featured {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.author-image {
    position: relative;
    flex-shrink: 0;
}

.author-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    border: 3px solid var(--white);
}

.author-details {
    flex: 1;
    min-width: 200px;
}

.author-details h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.author-details p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.author-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.author-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.rating-featured {
    text-align: center;
    flex-shrink: 0;
}

.rating-featured .stars {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.rating-featured .rating-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

/* Modern Testimonial Cards */
.testimonial-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.testimonial-card-modern .card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.author-info-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.author-meta h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.author-meta span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.rating-compact {
    color: #fbbf24;
    font-size: 1rem;
}

.testimonial-card-modern .card-body {
    padding: 1.5rem;
    flex: 1;
}

.testimonial-card-modern .card-body p {
    color: var(--gray-700);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    font-size: 1rem;
}

.testimonial-card-modern .card-footer {
    padding: 1rem 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.achievement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.achievement i {
    font-size: 1rem;
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-top: 3rem;
}

.trust-item {
    text-align: center;
    padding: 1rem;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-hero);
}

.trust-label {
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .featured-testimonial {
        padding: 3rem 2rem;
    }
    
    .featured-testimonial blockquote {
        font-size: 1.3rem;
    }
    
    .testimonial-author-featured {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .author-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 80px 0;
    }
    
    .featured-testimonial {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .featured-testimonial blockquote {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .author-image img {
        width: 60px;
        height: 60px;
    }
    
    .verified-badge {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .author-details h4 {
        font-size: 1.2rem;
    }
    
    .author-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .testimonial-card-modern .card-header,
    .testimonial-card-modern .card-body,
    .testimonial-card-modern .card-footer {
        padding: 1rem;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem 1rem;
    }
    
    .trust-number {
        font-size: 2rem;
    }
}

/* ------------------- */
/* Contact Section     */
/* ------------------- */
.contact-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    padding: 100px 0;
    color: var(--white);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="contact-grad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23667eea;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23764ba2;stop-opacity:0.05"/></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23contact-grad)"/><circle cx="80" cy="80" r="2" fill="url(%23contact-grad)"/></svg>');
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section .section-title {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-section .section-title::after {
    background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0.5));
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.contact-info h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-family: var(--font-heading);
    position: relative;
    z-index: 2;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

.contact-methods {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-method i {
    font-size: 1.8rem;
    color: var(--white);
    margin-right: 1.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.contact-method:hover i {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.contact-method h6 {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-method p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
}

.social-links {
    position: relative;
    z-index: 2;
}

.social-links h6 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control,
.form-select {
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: var(--white);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control::placeholder {
    color: var(--gray-400);
    font-style: italic;
}

/* Contact Form Enhancements */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.8-.8 1.85-1.85L6.3 2.8l.8.8L5.25 5.45 3.1 7.6z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,  255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-form .btn-primary:hover::before {
    left: 100%;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a57d8 0%, #6c5b99 100%);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.contact-form .btn-primary {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ------------------- */
/* Footer              */
/* ------------------- */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--gray-200);
    position: relative;
}

.footer-content {
    padding: 1.5rem 0 1rem;
}

.footer-brand {
    margin-bottom: 0.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-logo:hover {
    color: var(--primary-color);
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-description {
    color: var(--gray-600);
    line-height: 1.4;
    margin: 0;
    font-size: 0.85rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.footer-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.8rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
}

.copyright {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-end;
    margin: 0;
}

.footer-bottom-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        padding: 1.25rem 0 0.75rem;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        text-align: center;
        margin: 0 auto;
    }
    
    .footer-links {
        align-items: center;
        gap: 1rem;
    }
    
    .footer-nav {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .copyright {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: 1rem;
        margin-top: 0.5rem;
    }
}

/* ------------------- */
/* Responsive Design   */
/* ------------------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-stats {
        margin: 1.5rem 0 !important;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        margin: 0.5rem 0.5rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-image {
        height: 300px;
        margin-top: 2rem;
    }
    
    .floating-card {
        width: 150px;
        height: 90px;
    }
    
    .about-image-wrapper {
        width: 100%;
        max-width: 300px;
        height: 350px;
        margin: 0 auto;
    }
    
    .comparison-slider {
        height: auto !important;
        min-height: 200px;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
        top: -10px;
        right: -10px;
    }
    
    .experience-badge h3 {
        font-size: 1.5rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 40px 0; /* Add padding to account for fixed navbar */
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 1rem !important;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 1rem !important;
        padding: 0 0.5rem;
    }
    
    .hero-stats {
        margin: 1rem 0 !important;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .highlight-word {
        font-size: 1.1em;
        display: inline-block;
        max-width: 100%;
    }
    
    .hero-buttons {
        text-align: center;
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0 !important; /* Remove all margins */
        width: 200px;
        flex-shrink: 0;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .comparison-slider {
        height: auto !important;
        min-height: 180px;
    }
    
    .floating-card {
        width: 120px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 70px 0 30px 0;
    }
    
    .hero-content {
        padding: 0.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem !important;
        padding: 0 0.25rem;
    }
    
    .hero-stats {
        margin: 1rem 0 !important;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 180px;
        margin: 0 !important; /* Remove all margins */
    }
    
    .highlight-word {
        font-size: 0.9em;
        letter-spacing: 0.05em;
    }
    
    .floating-card {
        width: 100px;
        height: 60px;
    }
}

@media (max-width: 360px) {
    .hero-section {
        padding: 70px 0 20px 0;
    }
    
    .hero-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.4;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
        margin-bottom: 0.75rem !important;
        padding: 0;
    }
    
    .hero-stats {
        margin: 0.75rem 0 !important;
    }
    
    .hero-stats .stat-number {
        font-size: 1.6rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: 160px;
        margin: 0 !important; /* Remove all margins */
    }
    
    .highlight-word {
        font-size: 0.9em;
        letter-spacing: 0.02em;
    }
    
    .floating-card {
        width: 80px;
        height: 50px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .hero-section {
        padding: 70px 0 10px 0;
    }
    
    .hero-content h1 {
        font-size: 1.3rem !important;
        line-height: 1.4;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-content .lead {
        font-size: 0.85rem;
        margin-bottom: 0.5rem !important;
        padding: 0;
    }
    
    .hero-stats {
        margin: 0.5rem 0 !important;
    }
    
    .hero-stats .stat-number {
        font-size: 1.4rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.65rem;
    }
    
    .hero-buttons {
        margin-top: 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        width: 140px;
        margin: 0 !important; /* Remove all margins */
    }
    
    .highlight-word {
        font-size: 0.8em;
        letter-spacing: 0.02em;
    }
    
    .floating-card {
        width: 60px;
        height: 40px;
    }
}

/* Ensure min-height works properly on mobile */
@media (max-width: 768px) {
    .min-vh-100 {
        min-height: calc(100vh - 70px) !important; /* Account for navbar */
    }
    
    .hero-section .row {
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-section .col-lg-6 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Force visibility on mobile */
@media (max-width: 991px) {
    .hero-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-content h1 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ------------------- */
/* Enhanced mobile styles for portfolio images - no background showing */
/* ------------------- */
@media (max-width: 991px) {
    .portfolio-card .comparison-slider {
        height: auto !important;
        min-height: 200px;
        max-height: none;
    }
    
    .portfolio-card .comparison-slider img {
        object-fit: cover !important;
        object-position: center;
        width: 100%;
        height: auto;
        min-height: 200px;
        max-width: 100%;
        display: block;
    }
}

/* Additional About Section Mobile Fixes */
@media (max-width: 991px) {
    .about-section .col-lg-6:first-child {
        order: 2;
    }
    
    .about-section .col-lg-6:last-child {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .about-image-container {
        width: 100%;
        text-align: center;
        margin-bottom: 0;
        margin-top: 2rem;
    }
    
    .about-content {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }
    
    .about-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .about-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .about-section .container {
        padding: 0 1rem;
    }
    
    .about-image-container {
        margin-top: 1.5rem;
    }
    
    .about-image-wrapper {
        width: 100%;
        max-width: 280px;
        height: 320px;
        margin: 0 auto;
    }
    
    .experience-badge {
        width: 90px;
        height: 90px;
        top: -5px;
        right: -5px;
    }
    
    .experience-badge h3 {
        font-size: 1.4rem;
    }
    
    .experience-badge p {
        font-size: 0.65rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .about-content .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .about-content .lead {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .skills-section {
        margin-top: 1.5rem;
    }
    
    .skills-section .row {
        gap: 0.5rem;
    }
    
    .skill-item {
        margin-bottom: 0.5rem;
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .skill-item i {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
    
    .about-buttons {
        margin-top: 1.5rem;
    }
    
    .about-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 2rem 0;
    }
    
    .about-section .container {
        padding: 0 0.5rem;
    }
    
    .about-image-container {
        margin-top: 1rem;
    }
    
    .about-image-wrapper {
        width: 100%;
        max-width: 250px;
        height: 280px;
        margin: 0 auto;
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
        top: 0;
        right: 0;
    }
    
    .experience-badge h3 {
        font-size: 1.2rem;
    }
    
    .experience-badge p {
        font-size: 0.6rem;
    }
    
    .about-content {
        padding: 0 0.5rem;
    }
    
    .about-content .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .about-content .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .about-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .skills-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .skills-section .row {
        margin: 0;
    }
    
    .skills-section .col-md-6 {
        padding: 0;
    }
    
    .skill-item {
        margin-bottom: 0.4rem;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .skill-item i {
        font-size: 1rem;
        margin-right: 0.4rem;
    }
    
    .about-buttons {
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .about-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 1.5rem 0;
    }
    
    .about-image-wrapper {
        max-width: 220px;
        height: 250px;
    }
    
    .experience-badge {
        width: 70px;
        height: 70px;
        top: 5px;
        right: 5px;
    }
    
    .experience-badge h3 {
        font-size: 1rem;
    }
    
    .experience-badge p {
        font-size: 0.55rem;
    }
    
    .about-content .section-title {
        font-size: 1.5rem;
    }
    
    .about-content .lead {
        font-size: 0.95rem;
    }
    
    .about-content p {
        font-size: 0.85rem;
    }
    
    .skills-section h4 {
        font-size: 1rem;
    }
    
    .skill-item {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .skill-item i {
        font-size: 0.9rem;
    }
    
    .about-buttons .btn {
        max-width: 260px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .about-section {
        padding: 1rem 0;
    }
    
    .about-image-wrapper {
        max-width: 200px;
        height: 220px;
    }
    
    .experience-badge {
        width: 60px;
        height: 60px;
        top: 10px;
        right: 10px;
    }
    
    .experience-badge h3 {
        font-size: 0.9rem;
    }
    
    .experience-badge p {
        font-size: 0.5rem;
    }
    
    .about-content .section-title {
        font-size: 1.3rem;
    }
    
    .about-content .lead {
        font-size: 0.9rem;
    }
    
    .about-content p {
        font-size: 0.8rem;
    }
    
    .skills-section h4 {
        font-size: 0.95rem;
    }
    
    .skill-item {
        padding: 0.3rem;
        font-size: 0.75rem;
    }
    
    .skill-item i {
        font-size: 0.8rem;
    }
    
    .about-buttons .btn {
        max-width: 240px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Services Section Responsive Styles */
@media (max-width: 991.98px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-section .section-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 1.5rem;
    }
    
    .service-price .price {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 50px 0;
    }
    
    .services-section .container {
        padding: 0 15px;
    }
    
    .services-section .section-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .services-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 15px;
    }
    
    .service-card.featured {
        transform: scale(1);
        margin-bottom: 2rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .service-features {
        margin-bottom: 2rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    .service-price .price {
        font-size: 1.8rem;
    }
    
    .service-price .period {
        font-size: 0.9rem;
    }
    
    .service-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        top: -8px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .services-section {
        padding: 40px 0;
    }
    
    .services-section .container {
        padding: 0 10px;
    }
    
    .services-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .services-section .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .service-card.featured {
        transform: scale(1);
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }
    
    .service-features {
        margin-bottom: 1.5rem;
    }
    
    .service-features li {
        font-size: 0.8rem;
        padding: 0.4rem 0;
        padding-left: 1.5rem;
    }
    
    .service-features li::before {
        font-size: 1rem;
        width: 20px;
        height: 20px;
        top: 0.4rem;
    }
    
    .service-price {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .service-price .price {
        font-size: 1.5rem;
    }
    
    .service-price .period {
        font-size: 0.8rem;
    }
    
    .service-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.8rem;
        top: -6px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 35px 0;
    }
    
    .services-section .section-title {
        font-size: 1.6rem;
    }
    
    .services-section .section-subtitle {
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 1.2rem 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .service-features li {
        font-size: 0.75rem;
        padding-left: 1.2rem;
    }
    
    .service-features li::before {
        font-size: 0.9rem;
        width: 18px;
        height: 18px;
    }
    
    .service-price .price {
        font-size: 1.3rem;
    }
    
    .service-price .period {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .services-section {
        padding: 30px 0;
    }
    
    .services-section .section-title {
        font-size: 1.4rem;
    }
    
    .services-section .section-subtitle {
        font-size: 0.8rem;
    }
    
    .service-card {
        padding: 1rem 0.6rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .service-card h4 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
    
    .service-features li {
        font-size: 0.7rem;
        padding-left: 1rem;
    }
    
    .service-features li::before {
        font-size: 0.8rem;
        width: 16px;
        height: 16px;
    }
    
    .service-price .price {
        font-size: 1.2rem;
    }
    
    .service-price .period {
        font-size: 0.7rem;
    }
}

/* Fix Bootstrap grid issues on mobile */
@media (max-width: 767.98px) {
    .services-section .row.g-4 {
        margin: 0 -10px;
    }
    
    .services-section .row.g-4 > * {
        padding: 0 10px;
    }
    
    .services-section .col-lg-4,
    .services-section .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .services-section .col-lg-4:last-child,
    .services-section .col-md-6:last-child {
        margin-bottom: 0;
    }
}

/* Ensure full width on mobile */
@media (max-width: 575.98px) {
    .services-section .col-lg-4,
    .services-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Additional mobile fixes for services section */
@media (max-width: 767.98px) {
    .services-section {
        overflow-x: hidden;
    }
    
    .services-section .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .service-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-card h4 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .service-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .service-features {
        padding-left: 0;
        list-style: none;
    }
    
    .service-features li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .service-badge {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
}

/* Ensure proper spacing and alignment on all mobile devices */
@media (max-width: 575.98px) {
    .services-section .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .services-section .col-lg-4,
    .services-section .col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 20px;
    }
    
    .services-section .col-lg-4:last-child,
    .services-section .col-md-6:last-child {
        margin-bottom: 0;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .services-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .service-card {
        padding: 0.8rem 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-card h4 {
        font-size: 0.9rem;
    }
    
    .service-card p {
        font-size: 0.75rem;
    }
    
    .service-features li {
        font-size: 0.65rem;
    }
    
    .service-price .price {
        font-size: 1.1rem;
    }
    
    .service-price .period {
        font-size: 0.65rem;
    }
}