@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    /* New color palette - vibrant with better contrast */
    --primary: #6D28D9;       /* Vibrant purple */
    --primary-dark: #5B21B6;  /* Darker purple */
    --primary-light: #8B5CF6; /* Light purple */
    
    --secondary: #2563EB;     /* Bright blue */
    --secondary-dark: #1D4ED8;/* Darker blue */
    --secondary-light: #60A5FA;/* Light blue */
    
    --accent: #F97316;        /* Vibrant orange */
    --accent-dark: #EA580C;   /* Darker orange */
    --accent-light: #FB923C;  /* Light orange */
    
    --dark: #111827;          /* Nearly black */
    --dark-light: #1F2937;    /* Dark gray */
    --body: #374151;          /* Medium gray for text */
    --light: #F9FAFB;         /* Nearly white */
    --white: #ffffff;         /* Pure white */
    --gray-100: #F3F4F6;      /* Very light gray */
    --gray-200: #E5E7EB;      /* Light gray */
    --gray-300: #D1D5DB;      /* Medium light gray */
    --neutral: #6B7280;       /* Neutral gray */
    --neutral-light: #E5E7EB; /* Light neutral */
    --neutral-dark: #374151;  /* Dark neutral */
    
    /* Shadow variables stay the same but with updated colors */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 25px rgba(109, 40, 217, 0.25);
    
    /* Improved text contrast colors */
    --text-on-dark: rgba(255, 255, 255, 0.95);
    --text-on-light: var(--dark);
    --text-muted-on-dark: rgba(255, 255, 255, 0.8);
    --text-muted-on-light: var(--body);
}

/* Base Styles - Enhanced with better typography and micro-interactions */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--body);
    line-height: 1.8;
    overflow-x: hidden;
    background-color: var(--light);
    font-size: 16px;
}

/* Improved typography */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h1, .h1 { font-size: 3.75rem; }
h2, .h2 { font-size: 3rem; }
h3, .h3 { font-size: 2.25rem; }
h4, .h4 { font-size: 1.875rem; }
h5, .h5 { font-size: 1.5rem; }
h6, .h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.4s ease;
    font-weight: 500;
}

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

img {
    width: 100%;
}

/* Layout & Spacing */
section {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.container {
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
    width: 100%;
}

/* Improved Utility Classes with better contrast */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-dark { color: var(--dark) !important; }
.text-body { color: var(--body) !important; }
.text-white { color: var(--white) !important; }
.text-light { color: var(--light) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-dark-light { background-color: var(--dark-light) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-white { background-color: var(--white) !important; }
.bg-gray-100 { background-color: var(--gray-100) !important; }
.bg-gray-200 { background-color: var(--gray-200) !important; }

.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }

.fs-sm { font-size: 0.875rem !important; }
.fs-md { font-size: 1rem !important; }
.fs-lg { font-size: 1.125rem !important; }
.fs-xl { font-size: 1.25rem !important; }
.fs-2xl { font-size: 1.5rem !important; }

.rounded-xl { border-radius: 12px !important; }
.rounded-2xl { border-radius: 16px !important; }
.rounded-3xl { border-radius: 24px !important; }
.rounded-circle { border-radius: 50% !important; }

.shadow-effect { box-shadow: var(--shadow) !important; }
.shadow-sm-effect { box-shadow: var(--shadow-sm) !important; }
.shadow-md-effect { box-shadow: var(--shadow-md) !important; }
.shadow-lg-effect { box-shadow: var(--shadow-lg) !important; }

/* Fix for heading contrast issues */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark .h1, .bg-dark .h2, .bg-dark .h3, .bg-dark .h4, .bg-dark .h5, .bg-dark .h6 {
    color: #ffffff !important;
}

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-light .h1, .bg-light .h2, .bg-light .h3, .bg-light .h4, .bg-light .h5, .bg-light .h6 {
    color: #111827 !important;
}

/* Ensure section headings are always visible */
.section-title {
    margin-bottom: 50px;
    position: relative;
    text-align: center;
}

.section-title .subtitle {
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
    position: relative;
}

.section-title .subtitle::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 40px;
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: -5px;
    left: 0;
}

.section-title h2 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 15px;
    color: var(--text-on-light);
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Fix for specific section titles and headings that are invisible */
.section-title h2 {
    color: var(--dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.bg-dark .section-title h2,
.bg-dark-light .section-title h2,
#reviews .section-title h2,
.bg-gradient-to-r.from-dark .section-title h2 {
    color: var(--white) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bg-light .section-title h2,
.bg-white .section-title h2,
.bg-gray-100 .section-title h2,
.bg-gray-50 .section-title h2 {
    color: var(--dark) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Fix for section subtitle visibility */
.section-title .subtitle {
    color: var(--primary);
    font-weight: 600;
}

.bg-dark .section-title .subtitle,
.bg-dark-light .section-title .subtitle,
.bg-gradient-to-r.from-dark .section-title .subtitle,
#reviews .section-title .subtitle {
    color: var(--primary-light) !important;
    font-weight: 600;
}

/* Ensure text contrast across all backgrounds */
.text-white {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-dark {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Additional fix for specific sections that might have contrast issues */
#work .section-title,
#services .section-title,
#blog .section-title,
#contact .section-title {
    color: var(--dark);
}

#reviews .section-title,
#reviews .section-title h2,
#reviews .section-title .subtitle {
    color: var(--white) !important;
}

/* Specific override for testimonials section */
#reviews h2, 
#reviews .subtitle {
    color: var(--white) !important;
    opacity: 1;
}

/* Override for sections with light backgrounds */
.bg-light h2, 
.bg-white h2, 
.bg-gray-100 h2 {
    color: var(--dark) !important;
}

/* Override for sections with dark backgrounds */
.bg-dark h2, 
.bg-dark-light h2 {
    color: var(--white) !important;
}

/* Buttons - Completely redesigned with modern aesthetics */
.btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow);
    letter-spacing: 0.5px;
}

.btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::after {
    width: 100%;
}

.btn-primary {
    background-image: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(109, 40, 217, 0.3);
}

.btn-primary:hover {
    background-image: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(109, 40, 217, 0.4);
}

.btn-secondary {
    background-image: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary:hover {
    background-image: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
    background-color: transparent;
    color: var (--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-link {
    padding: 0;
    background: none;
    color: var(--secondary);
    position: relative;
    font-weight: 600;
    border: none;
    padding-bottom: 3px;
}

.btn-link::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 0;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
    transition: all 0.4s ease;
}

.btn-link:hover {
    color: var(--primary);
}

.btn-link:hover::after {
    width: 100%;
    background-color: var(--primary);
}

/* Fix for "Explore My Work" button */
.btn-brand {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-brand:hover {
    color: var(--white);
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* Fix for "Testimonials" heading */
.section-title .text-brand {
    color: var(--brand);
}

/* Fix for "Let's Work Together" in contact section */
#contact h4 {
    color: var(--primary);
}

/* Adding additional contrast fix for any white on white text */
.bg-base .text-white,
.contact-info .text-white {
    color: var(--primary) !important;
}

/* To ensure any light text on light background is visible */
.bg-light .text-white {
    color: var(--dark) !important;
}

/* Fix for the "GET IN TOUCH" subtitle in contact section */
#contact .section-title .subtitle {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Fix for "Let's Work Together" heading in contact section */
#contact h4,
#contact .contact-form h4 {
    color: var(--dark) !important;
    font-weight: 700;
}

/* Ensure contact section headings have proper contrast */
#contact .section-title h2 {
    color: var (--dark) !important;
}

/* Additional specificity for contact section text elements */
#contact .text-white {
    color: var(--dark) !important;
}

/* Ensure proper contrast in the contact info box */
.contact-info h4,
.contact-info .h4 {
    color: var(--white) !important;
}

/* Enhanced button styles for better visibility on different backgrounds */
.btn-on-dark {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-on-dark:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-on-light {
    background-color: var(--dark);
    color: var(--white);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-on-light:hover {
    background-color: var(--dark-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Before and After Image Comparison */
.image-comparison {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.image-comparison img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-comparison .before-image {
    z-index: 1;
}

.image-comparison .after-image {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.image-comparison .comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: white;
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
}

.image-comparison .comparison-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-comparison .comparison-slider::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: var(--primary);
    font-weight: bold;
}

/* Enhanced form inputs for better contrast */
.form-control-dark {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control-dark:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-control-light {
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--dark);
}

.form-control-light::placeholder {
    color: var(--neutral);
}

.form-control-light:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* Blog and Services Card Contrast Fixes */
.blog-card .blog-content,
.service-card {
    background-color: var(--white);
    color: var(--body);
}

.blog-card .blog-content h5,
.service-card h5 {
    color: var(--dark);
}

.blog-card .blog-content p,
.service-card p {
    color: var(--body);
}

/* Work card contrast fixes */
.work-card .work-content {
    background-color: var(--white);
}

.work-card .work-content h5 {
    color: var(--dark);
}

.work-card .work-content p {
    color: var(--body);
}

/* Review card contrast fixes */
.review-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
}

.review-card .review-text {
    color: var(--text-on-dark);
}

.review-card .review-author-info h6 {
    color: var(--white);
}

.review-card .review-author-info p {
    color: var(--text-muted-on-dark);
}

/* Contact form contrast fixes */
#contact .contact-form {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#contact .contact-form h4 {
    color: var(--white);
}

#contact .contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

#contact .contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#contact .contact-form .btn {
    background: var(--white);
    color: var(--primary);
}

#contact .contact-form .btn:hover {
    background: var(--gray-100);
}

/* Fix the services section icons for better contrast */
.service-card .service-icon {
    background: rgba(15, 118, 110, 0.15);
    color: var(--primary);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

/* Navbar - Completely redesigned */
.navbar {
    padding-top: 20px;
    padding-bottom: 20px;
    transition: all 0.4s ease;
    z-index: 9999;
}

.navbar.scrolled {
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.4s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 7px 15px rgba(15, 118, 110, 0.3);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 1px;
}

/* Desktop sidebar navigation */
@media (min-width: 992px) {
    .navbar {
        width: 300px;
        min-height: 100vh;
        background: linear-gradient(135deg, var(--dark), var(--dark-light));
        box-shadow: var(--shadow-lg);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar .container {
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        min-height: 100vh;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding-top: 40px;
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 15px 25px;
        margin: 8px 15px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 15px;
        transition: all 0.3s ease;
        font-weight: 500;
        letter-spacing: 0.5px;
        position: relative;
        overflow: hidden;
        font-size: 1.05rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .navbar-dark .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        height: 100%;
        width: 0;
        top: 0;
        left: 0;
        background: linear-gradient(90deg, var(--primary), transparent);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: -1;
    }

    .navbar-dark .navbar-nav .nav-link i {
        font-size: 22px;
    }

    .navbar-dark .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: var(--white);
        transform: translateX(5px);
    }

    .navbar-dark .navbar-nav .nav-link:hover::before {
        width: 100%;
        opacity: 0.1;
    }

    .navbar-dark .navbar-nav .nav-link.active {
        background: linear-gradient(90deg, var(--primary), var(--primary-dark));
        color: var(--white);
        box-shadow: 0 7px 15px rgba(99, 102, 241, 0.3);
        transform: translateX(0);
    }

    .navbar-dark .navbar-nav .nav-link.active i {
        color: var(--white);
    }

    .navbar-brand {
        margin-bottom: 40px;
        text-align: center;
    }

    .navbar-brand img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 20px;
        border: 5px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        transition: all 0.5s ease;
    }

    .navbar-brand img:hover {
        transform: translateY(-10px) rotate(5deg);
        border-color: var(--primary);
        box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
    }

    .sidebar-footer {
        margin-top: auto;
        padding: 30px 20px;
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sidebar-social {
        display: flex;
        justify-content: center;
        padding: 140px 0 100px;
    }
}

/* Enhanced hero typography with better contrast */
#home h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

@media (max-width: 768px) {
    #home h1 {
        font-size: 2.5rem;
    }
}

#home h1 span {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    display: inline-block; /* Fix for gradient text visibility */
}

#home p {
    color: var(--text-on-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.95; /* Increased opacity for better readability */
}

/* Redesigned buttons with better contrast and visibility */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-right: 10px; /* Add space between buttons */
    margin-bottom: 15px; /* Add space for mobile layouts */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow for better visibility */
    color: white !important; /* Force white text */
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important; /* Force white text */
    box-shadow: 0 6px 15px rgba(109, 40, 217, 0.5) !important; /* More visible shadow */
    border: none;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.7) !important;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.25) !important; /* More visible background */
    backdrop-filter: blur(10px);
    color: white !important; /* Force white text */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Enhanced social icons with better visibility */
.social-icons {
    margin-top: 40px;
    display: flex;
    gap: 12px; /* Consistent spacing */
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25) !important; /* Increased opacity for better visibility */
    border-radius: 50%;
    color: white !important; /* Force white text */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4); /* Brighter border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Enhanced shadow for better visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Text shadow for better visibility */
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(109, 40, 217, 0.4); /* Enhanced shadow on hover */
    border-color: var(--primary-light); /* Brighter border on hover */
}

.social-icon i {
    color: white !important; /* Ensure icon color is white */
    font-size: 1.1rem; /* Slightly larger font size */
}

/* Services - completely redesigned with modern cards */
.service-card {
    padding: 30px 25px; /* More consistent padding */
    border-radius: 24px;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0%;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(15, 118, 110, 0.05), transparent);
    z-index: -1;
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(15, 118, 110, 0.15);
    border-color: rgba(15, 118, 110, 0.3);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(37, 99, 235, 0.1));
    color: var(--primary);
    font-size: 36px;
    border-radius: 20px;
    margin-bottom: 30px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.1);
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 10px;
    left: 10px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.5s ease;
    opacity: 0;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 15px 30px rgba(109, 40, 217, 0.3);
    transform: rotate(10deg) translateY(-5px);
}

.service-card:hover .service-icon::after {
    opacity: 1;
    transform: translate(5px, 5px);
}

.service-card h5 {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
    color: var(--dark);
}

.service-card h5::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
    bottom: 0;
    left: 0;
}

.service-card p {
    margin-bottom: 25px;
    color: var(--body);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Work projects - Cards with hovering effects */
.work-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    height: 100%;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 118, 110, 0.2);
}

.work-card-img {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.work-card-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.work-card:hover .work-card-img img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-overlay a {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    margin: 0 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 24px;
}

.work-card:hover .work-overlay a {
    transform: translateY(0);
    opacity: 1;
}

.work-overlay a:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-5px);
}

.work-content {
    padding: 30px;
}

.work-content h5 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.work-content p {
    color: var(--body);
    margin-bottom: 20px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.work-tag {
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(30, 64, 175, 0.1));
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.work-tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: translateY(-2px);
}

/* About section */
.about-img {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.about-img::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.3), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}

.about-img:hover::after {
    opacity: 1;
}

.about-img img {
    transition: all 0.6s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content {
    padding-left: 30px;
}

@media (max-width: 991px) {
    .about-content {
        padding-left: 0;
        margin-top: 40px;
    }
}

.about-content h5 {
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.about-content p {
    margin-bottom: 25px;
}

.skill {
    margin-bottom: 25px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name h6 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0;
}

.skill-progress {
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    position: relative;
    transition: width 1.5s ease;
}

.experience-item {
    padding: 30px;
    border-radius: 16px;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.experience-year {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 15px;
}

.experience-item h5 {
    margin-bottom: 10px;
    font-weight: 700;
}

.experience-item p {
    color: var(--body);
    margin-bottom: 0;
}

/* Reviews section */
#reviews {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url(../images/reviews-bg.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.review-card {
    padding: 30px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.review-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(15, 118, 110, 0.3);
}

.review-text {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-on-dark);
}

.review-text i {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-right: 10px;
    opacity: 0.8;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.review-author-info h6 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--white);
}

.review-author-info p {
    color: var(--text-muted-on-dark);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.review-stars {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Blog section */
.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 118, 110, 0.2);
}

.blog-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.3);
}

.blog-date .day {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 2px;
}

.blog-date .month {
    font-size: 12px;
    text-transform: uppercase;
}

.blog-content {
    padding: 30px;
}

.blog-content h5 {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark);
}

.blog-content p {
    margin-bottom: 20px;
    color: var (--body);
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--body);
    margin-bottom: 15px;
}

.blog-meta i {
    color: var(--primary);
    margin-right: 5px;
}

/* Contact section */
#contact {
    position: relative;
    background-color: var(--light);
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    border-radius: 50%;
    z-index: 0;
}

#contact::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08), transparent);
    border-radius: 50%;
    z-index: 0;
}

.contact-info {
    padding: 40px;
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    color: var(--white);
    border-radius: 24px;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
    border-radius: 50%;
    transform: translate(40%, -40%);
    z-index: -1;
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 130px;
    height: 130px;
    background-color: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    transform: translate(-30%, 30%);
    z-index: -1;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--primary-light);
    border-radius: 16px;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-info-item:hover .contact-info-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.3);
}

.contact-info-content h5 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-info-content p, 
.contact-info-content a {
    color: var(--text-muted-on-dark);
    margin-bottom: 0;
    font-size: 1.05rem;
}

.contact-info-content a {
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-info-content a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.contact-form {
    padding: 30px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05), transparent);
    border-radius: 50%;
    z-index: -1;
}

.contact-form h4 {
    margin-bottom: 30px;
    color: var(--dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: 0;
    left: 0;
}

.contact-form .form-control {
    height: 60px;
    padding: 12px 25px;
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    background-color: var(--light);
    color: var(--body);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 500;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.1);
}

.contact-form textarea.form-control {
    height: auto;
    min-height: 180px;
    resize: none;
    padding-top: 20px;
}

.contact-form .btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.3);
    color: var(--white);
}

.contact-form .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 118, 110, 0.4);
}

/* Footer section */
footer {
    background-color: var(--dark);
    color: var(--text-muted-on-dark);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.1), transparent);
    border-radius: 50%;
    z-index: 0;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    width: 120px;
    height: auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.3);
}

.footer-links h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: 0;
    left: 0;
}

.footer-links ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

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

.footer-links ul li a {
    color: var(--text-muted-on-dark);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    margin-top: 60px;
}

.footer-bottom p {
    margin-bottom: 0;
    color: var(--text-muted-on-dark);
}

.footer-bottom a {
    color: var(--primary-light);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Enhanced Footer Design */
.footer {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
    border-radius: 50%;
    z-index: 0;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent);
    border-radius: 50%;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 50px;
}

.footer-text {
    color: var(--text-muted-on-dark);
    margin-bottom: 30px;
    max-width: 400px;
}

.footer-social {
    margin-bottom: 30px;
}

.footer-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-muted-on-dark);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--primary-light);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: var(--primary-light);
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: translateY(-3px);
}

.footer-contact-text {
    color: var(--text-muted-on-dark);
}

.footer-contact-text a {
    color: var(--text-muted-on-dark);
    transition: all 0.3s ease;
}

.footer-contact-text a:hover {
    color: var(--white);
}

.footer-newsletter p {
    color: var(--text-muted-on-dark);
    margin-bottom: 20px;
}

.footer-newsletter-form {
    display: flex;
}

.footer-newsletter-input {
    flex: 1;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 0 20px;
    color: var(--white);
    font-size: 0.95rem;
}

.footer-newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter-button {
    height: 50px;
    padding: 0 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 0 12px 12px 0;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color: var(--text-muted-on-dark);
    font-size: 0.95rem;
}

/* Enhanced Cards for Blog and Work Sections */
.work-card, .blog-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.work-card:hover, .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.work-card-img, .blog-img {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.work-card-img img, .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-card-img img, 
.blog-card:hover .blog-img img {
    transform: scale(1.08);
}

.work-content, .blog-content {
    padding: 25px;
}

.work-content h5, .blog-content h5 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.work-content p, .blog-content p {
    color: var(--body);
    margin-bottom: 20px;
}

/* Service Cards Enhancement */
.service-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(var(--primary-rgb), 0.05), transparent);
    bottom: 0;
    left: 0;
    z-index: -1;
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 32px;
    border-radius: 20px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: rotate(10deg);
}

/* Testimonial Cards Enhancement */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.testimonial-name {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-position {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.review-stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Media Queries for Footer Responsiveness */
@media (max-width: 991px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-title {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .footer-newsletter-form {
        flex-direction: column;
    }
    
    .footer-newsletter-input {
        border-radius: 12px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .footer-newsletter-button {
        border-radius: 12px;
        width: 100%;
    }
}

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

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

/* Improved Scrolling Experience */
html {
    scroll-behavior: smooth; /* Enable smooth scrolling for the entire page */
}

/* Enhanced scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Improve the scroll-top button with better positioning and transitions */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 22px;
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.4);
}

/* Enhanced scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: var(--light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 10px;
    border: 3px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-dark), var(--secondary-dark));
}

/* Scroll snap for section alignment on larger screens */
@media (min-width: 992px) {
    html, body {
        scroll-padding-top: 80px; /* Prevents content from hiding under fixed navbar */
    }
    
    /* Apply scroll-margin-top to all sections to improve anchor link positioning */
    section {
        scroll-margin-top: 80px;
    }
}

/* Improved scrolling transitions for section elements */
section {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Optimized scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    section {
        scroll-margin-top: 70px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    h1, .h1 { font-size: 3rem; }
    h2, .h2 { font-size: 2.4rem; }
    h3, .h3 { font-size: 2rem; }
}

@media (max-width: 991px) {
    h1, .h1 { font-size: 2.8rem; }
    h2, .h2 { font-size: 2.2rem; }
    
    section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .about-img, .contact-info {
        margin-bottom: 40px;
    }
    
    #home h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    h1, .h1 { font-size: 2.5rem; }
    h2, .h2 { font-size: 2rem; }
    h3, .h3 { font-size: 1.8rem; }
    
    .service-card, .work-card, .blog-card {
        margin-bottom: 25px;
    }
    
    #home h1 {
        font-size: 2.5rem;
    }
    
    .review-card {
        padding: 25px;
    }
    
    .footer-links, .footer-logo-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    h1, .h1 { font-size: 2.2rem; }
    h2, .h2 { font-size: 1.8rem; }
    
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .contact-form, .contact-info {
        padding: 25px;
    }
    
    #home p {
        font-size: 1.1rem;
    }
    
    #home .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    font-size: 22px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Enhanced Responsive Layout and Uniform Containers */

/* Standardize container and image dimensions */
.uniform-container {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    background-color: var(--gray-100);
}

.uniform-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.work-card-img, .blog-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.work-card-img img, .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Better responsive grid for all screen sizes */
.responsive-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Improved responsive container for all sections */
.container {
    max-width: 1320px;
    padding-left: 25px;
    padding-right: 25px;
    margin: 0 auto;
    width: 100%;
}

/* XXL screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    h1, .h1 { font-size: 4rem; }
    h2, .h2 { font-size: 3rem; }
    #home h1 {
        font-size: 5rem;
    }
    .service-card, .work-card, .blog-card, .review-card {
        padding: 40px;
    }
}

/* XL screens */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    h1, .h1 { font-size: 3.5rem; }
    h2, .h2 { font-size: 2.8rem; }
    #home h1 {
        font-size: 4.5rem;
    }
}

/* LG screens - Existing code with enhancements */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    h1, .h1 { font-size: 3.2rem; }
    h2, .h2 { font-size: 2.5rem; }
    #home h1 {
        font-size: 4rem;
    }
    .service-card, .work-card, .blog-card, .review-card {
        padding: 30px;
    }
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    .contact-info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* MD screens - Enhanced with better spacing */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    h1, .h1 { font-size: 2.8rem; }
    h2, .h2 { font-size: 2.2rem; }
    h3, .h3 { font-size: 1.8rem; }
    #home {
        min-height: auto;
        padding: 140px 0;
    }
    #home h1 {
        font-size: 3.5rem;
    }
    .service-card, .work-card, .blog-card, .review-card {
        margin-bottom: 30px;
    }
    /* Grid columns for medium screens */
    .row-cols-md-2 > * {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
    /* Improved container spacing */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    /* Fix for sidebar navigation on tablets */
    .navbar {
        width: 100%;
        min-height: auto;
    }
    #home, #services, #work, #about, #reviews, #blog, #contact, footer {
        width: 100%;
        margin-left: 0;
    }
}

/* SM screens - Comprehensive improvements */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    section {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    h1, .h1 { font-size: 2.5rem; }
    h2, .h2 { font-size: 2rem; }
    h3, .h3 { font-size: 1.7rem; }
    #home {
        min-height: auto;
        padding: 120px 0;
    }
    #home h1 {
        font-size: 3rem;
    }
    #home p {
        font-size: 1.1rem;
    }
    .section-title {
        margin-bottom: 50px;
    }
    /* Improved container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Better button size for mobile */
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    /* Reduced card padding for small screens */
    .service-card, .work-card, .blog-card, .review-card, .contact-form, .contact-info {
        padding: 25px;
        margin-bottom: 25px;
    }
    /* Adjust icon sizes */
    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 26px;
        margin-bottom: 25px;
    }
    .contact-info-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    /* Make social icons more compact */
    #home .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    /* Responsive card content */
    .service-card h5,
    .work-content h5,
    .blog-content h5 {
        font-size: 1.3rem;
    }
}

/* XS screens - Extra small devices */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    h1, .h1 { font-size: 2.2rem; }
    h2, .h2 { font-size: 1.8rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.3rem; }
    #home {
        min-height: auto;
        padding: 100px 0;
    }
    #home h1 {
        font-size: 2.3rem;
        margin-bottom: 20px;
    }
    #home p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    #home .btn-hero {
        padding: 14px 25px;
        font-size: 1rem;
        margin-bottom: 10px;
        width: 100%;
        display: block;
        margin-right: 0;
    }
    .section-title {
        margin-bottom: 40px;
    }
    .section-title .subtitle {
        font-size: 0.95rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    /* Optimized card designs for very small screens */
    .service-card, .work-card, .blog-card, .review-card, .contact-form, .contact-info {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    .service-card h5,
    .work-content h5,
    .blog-content h5 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    .service-card p,
    .work-content p,
    .blog-content p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    .contact-info-item {
        gap: 15px;
        margin-bottom: 20px;
    }
    .contact-info-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    .contact-info-content h5 {
        font-size: 1.1rem;
    }
    .contact-form .form-control {
        height: 50px;
        padding: 10px 20px;
        margin-bottom: 15px;
    }
    .contact-form textarea.form-control {
        min-height: 150px;
    }
    .contact-form .btn {
        padding: 14px;
    }
    /* Fix social icons for mobile */
    #home .social-icons {
        margin-top: 30px;
        gap: 15px;
    }
    #home .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    /* Footer adjustments for mobile */
    footer {
        padding: 60px 0 20px;
    }
    .footer-links, .footer-logo-section {
        margin-bottom: 30px;
    }
    .footer-links h5 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    .footer-bottom {
        margin-top: 40px;
        padding-top: 20px;
    }
}

/* Make card heights uniform within the same row */
.row .service-card,
.row .work-card,
.row .blog-card,
.row .review-card {
    height: 100%;
}

/* Make image heights consistent */
.work-card-img img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.blog-img img {
    height: 230px;
    object-fit: cover;
    width: 100%;
}

/* Ensure proper spacing in flexbox layouts */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, 
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, 
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, 
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Handle extremely small screens (Galaxy Fold etc.) */
@media (max-width: 350px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.6rem; }
    
    .service-card, .work-card, .blog-card, .review-card, .contact-form, .contact-info {
        padding: 15px;
    }
    
    #home .btn-hero {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Optimize images for different screen sizes */
@media (max-width: 768px) {
    .work-card-img img {
        height: 200px;
    }
    
    .blog-img img {
        height: 180px;
    }
}

/* Fix for iPad Pro and similar devices */
@media (min-width: 992px) and (max-width: 1024px) and (orientation: portrait) {
    .navbar {
        width: 100%;
        min-height: auto;
    }
    
    #home, #services, #work, #about, #reviews, #blog, #contact, footer {
        width: 100%;
        margin-left: 0;
    }
}

/* Responsive improvements */
body {
    overflow-x: hidden;
}

.container {
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    body {
        padding: 0 10px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    h1, h2, h3 {
        margin-bottom: 15px;
    }
    
    p {
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* Tablet responsiveness */
@media (min-width: 768px) and (max-width: 991px) {
    section {
        padding: 80px 0;
    }
    
    .content-wrapper {
        padding: 20px;
    }
}

/* Desktop responsiveness */
@media (min-width: 992px) {
    section {
        padding: 100px 0;
    }
    
    .content-wrapper {
        padding: 30px;
    }
}

/* Animation enhancements */
.animated-element {
    transition: all 0.5s ease;
}

.fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll improvements */
html {
    scroll-behavior: smooth;
}

/* Improved card spacing and responsiveness */
.card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Row and column spacing */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, 
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, 
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, 
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Enhanced Social Icon Visibility */
.social-icon {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.social-icon i {
    color: white !important;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    transform: translateY(-3px);
}

/* Improved Blog Section Styling */
.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    height: 100%;
}

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

.blog-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.08);
}

.blog-content {
    padding: 25px;
}

.blog-content h5 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.blog-content p {
    color: var(--body);
    margin-bottom: 20px;
}

/* Force Font Awesome icons to be visible */
.fab, .fas, .far, .fal, .fad {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

.fa-github, .fa-linkedin, .fa-facebook, .fa-twitter, 
.fa-envelope, .fa-phone {
    color: white !important;
}

/* Enhanced section styling for redesigned sections */
section {
    position: relative;
    overflow: hidden;
}

/* Improved section titles with consistent styling */
.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title .subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title .line {
    height: 3px;
    width: 80px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 0 auto;
    margin-top: 1rem;
}

/* Enhanced service cards */
.service-card {
    border-radius: 1rem;
    padding: 2rem;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon-container {
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: rotate(10deg);
}

/* Project cards with consistent styling */
.project-card {
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 41, 55, 0.9), transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(4px);
}

/* About section enhancements */
.skill-progress {
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 0;
    transition: width 1.5s ease;
}

/* Testimonial cards */
.testimonial-card {
    border-radius: 1.5rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.testimonial-img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.testimonial-stars {
    color: #FCD34D;
    margin-bottom: 1rem;
}

/* Blog cards */
.blog-card {
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-date .day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.blog-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--body);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--dark);
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: var(--body);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.blog-meta i {
    color: var(--primary) !important;
    margin-right: 0.5rem;
}

.blog-meta span {
    margin-right: 1rem;
}

/* Contact section */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    font-size: 1.25rem;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-text h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Social Icons with better visibility */
.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.social-icon:hover {
    background-color: var(--primary) !important;
    transform: translateY(-5px);
}

.social-icon i {
    color: white !important;
    font-size: 1rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Enhanced scroll-to-top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-top:hover {
    transform: scale(1.1) translateY(-5px);
}

.scroll-top i {
    color: white !important;
}

/* Ensure Font Awesome icons are always visible */
.fab, .fas, .far, .fa {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
}

/* Enhanced gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
}

/* Enhanced buttons with gradient */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Improved color contrast for section headings */
.section-title h2 {
    color: var(--dark);
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.1);
}

.bg-dark .section-title h2,
.bg-primary-dark .section-title h2,
.bg-secondary-dark .section-title h2,
.bg-gradient-to-r.from-dark .section-title h2 {
    color: var(--white);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Enhanced footer styling */
.footer {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #F8FAFC;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-right: 10px;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #6D28D9, #4F46E5);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.3);
}

.footer-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: #FFFFFF;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #6D28D9, #4F46E5);
    border-radius: 2px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #6D28D9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 20px;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-text a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-contact-text a:hover {
    color: #FFFFFF;
}

.footer-newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.footer-newsletter-button {
    background: linear-gradient(135deg, #6D28D9, #4F46E5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Fix contrast for headings on dark backgrounds */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-primary-dark h1, .bg-primary-dark h2, .bg-primary-dark h3, .bg-primary-dark h4, .bg-primary-dark h5, .bg-primary-dark h6,
.bg-secondary-dark h1, .bg-secondary-dark h2, .bg-secondary-dark h3, .bg-secondary-dark h4, .bg-secondary-dark h5, .bg-secondary-dark h6,
.bg-gradient-to-r.from-dark h1, .bg-gradient-to-r.from-dark h2, .bg-gradient-to-r.from-dark h3, .bg-gradient-to-r.from-dark h4, .bg-gradient-to-r.from-dark h5, .bg-gradient-to-r.from-dark h6 {
    color: #FFFFFF;
}
