/* CSS Variables for Colors */
:root {
    /* Light Theme (Default) */
    --primary-color: #e67e22;
    --primary-dark: #d35400;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #aaa;
    --bg-light: #f0f4f8;
    --bg-white: #fff;
    --bg-dark: #222;
    --bg-darker: #1a1a1a;
    --border-light: #eee;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --heart-color: #e74c3c;
    --hero-img-color: #fdf2e9;
    
    /* Theme Transition */
    --transition-speed: 0.3s;
}

/* Dark Theme */
[data-theme="dark"] {
    --text-dark: #f0f0f0;
    --text-medium: #ccc;
    --text-light: #999;
    --bg-light: #2a2a2a;
    --bg-white: #333;
    --bg-dark: #1a1a1a;
    --bg-darker: #111;
    --border-light: #444;
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --hero-img-color: #504c49;

}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px var(--shadow-medium);
    z-index: 99;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.theme-toggle:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        left: 20px;
    }
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader:before, .loader:after {
    content: '';
    border-radius: 50%;
    position: absolute;
    inset: 0;
    box-shadow: 0 0 0 3px var(--primary-color);
    animation: pulsOut 1.8s ease-in-out infinite;
    animation-delay: -0.5s;
}

.loader:after {
    animation-delay: 0s;
}

@keyframes pulsOut {
    0%, 100% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 0;
    }
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden !important;
    width: 100%;
    
}

/* Header Styles */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-scrolled {
    padding: 15px 0;
    background-color: var(--bg-white);
}

.navbar-toggler{
    background-color: var(--primary-color);
    border-color: var(--bg-white);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark) !important;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin-left: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section Styles */
.hero-section {
    padding: 220px 0 100px;
    position: relative;
    background-color: var(--bg-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.greeting {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.name {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.profession {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.role-title {
    color: var(--primary-color);
    font-weight: 600;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    border: 1px solid #e67e22;
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.hero-image {
    text-align: right;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background-color: var(--hero-img-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: #fff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-section {
        padding: 150px 0 80px;
        text-align: center;
    }
    
    .name {
        font-size: 48px;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .description {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .name {
        font-size: 36px;
    }
    
    .profession {
        font-size: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* About Section Styles */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
}

.section-header {
    text-align: left;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header-line {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subheading {
    font-size: 14px;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
    border: 10px solid var(--bg-white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.about-image img {
    width: 100%;
    height: auto;
}

.social-icons {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-white);
    padding: 0 9px 5px 0;
}

.save-btn {
    background-color: var(--heart-color);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 5px;
    display: inline-block;
}

.save-btn:hover {
    background-color: #c0392b;
    color: #fff;
}

.social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: var(--primary-color);
}

.social-icon:hover {
    opacity: 0.8;
    color: #fff;
}

.about-content h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.about-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlight {
    color: var(--primary-color);
}

.about-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.personal-info {
    margin-bottom: 30px;
}

.about-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 10px;
}

.about-info-title {
    font-weight: 600;
    color: var(--text-dark);
}

.about-info-value {
    color: var(--text-medium);
}

.cv-button {
    margin-top: 20px;
}

/* Responsive styles for About section */
@media (max-width: 991px) {
    .about-section {
        padding: 80px 0;
    }
    
    .section-header {
        text-align: center;
    }
    
    .section-header-line {
        margin: 0 auto 15px;
    }
    
    .about-image {
        margin: 0 auto 40px;
    }
    
    .info-item {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    .about-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .about-content h3 {
        font-size: 24px;
    }
    
    .about-subtitle {
        font-size: 16px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
    }
    
    .info-title {
        margin-bottom: 5px;
    }

    .hero-image img{
        max-width: 90%;
    }

    .about-info-item{
        justify-content: flex-start;
        gap: 30px;
    }
}

/* Skills Section Styles */
.skills-section {
    padding: 100px 0;
    background-color: var(--bg-white);
    position: relative;
}

.skills-progress {
    margin-right: 30px;
}

.skill-item {
    margin-bottom: 30px;
}

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

.skill-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.skill-percentage {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-medium);
}

.progress {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.fun-fact-item {
    border: 1px solid #e67e22;
    border-radius: 5px;
    padding: 25px 15px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.fun-fact-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.fun-fact-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.fun-fact-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.fun-fact-text {
    font-size: 16px;
    color: var(--text-medium);
    margin: 0;
}

/* Responsive styles for Skills section */
@media (max-width: 991px) {
    .skills-section {
        padding: 80px 0;
    }
    
    .skills-progress {
        margin-right: 0;
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .skills-section {
        padding: 60px 0;
    }
    
    .fun-fact-item {
        padding: 20px 10px;
    }
    
    .fun-fact-number {
        font-size: 20px;
    }
    
    .fun-fact-text {
        font-size: 14px;
    }
}

/* Services Section Styles */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
}

.service-item {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px dotted #e67e22;
    color: var(--primary-color);
}

.service-icon i {
    font-size: 30px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-align: center;
}

.service-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 0;
}

/* Responsive styles for Services section */
@media (max-width: 991px) {
    .services-section {
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    .services-section {
        padding: 60px 0;
    }
    
    .service-item {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 25px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 14px;
    }
}

/* Latest Works Section Styles */
.works-section {
    padding: 100px 0;
    background-color: var(--bg-white);
    position: relative;
}

.portfolio-tabs {
    border: none;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.portfolio-tabs .tab-item {
    border: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.portfolio-tabs .tab-item:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.portfolio-tabs .tab-item.active,
.portfolio-tabs .tab-item:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.portfolio-tabs .tab-item.active:after,
.portfolio-tabs .tab-item:hover:after {
    width: 30px;
}

.portfolio-container {
    margin-left: -15px;
    margin-right: -15px;
}

.portfolio-item {
    transition: all 0.3s ease;
    padding: 15px;
    margin-bottom: 0;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 300px; /* Fixed height for all cards */
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio while covering the container */
    transition: all 0.5s ease;
    border-radius: 5px;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.work-info {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.work-info h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.work-info p {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.work-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.work-link:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

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

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

.work-item:hover .work-info {
    transform: translateY(0);
}

/* Responsive styles for Works section */
@media (max-width: 991px) {
    .works-section {
        padding: 80px 0;
    }
    
    .portfolio-tabs {
        flex-wrap: wrap;
    }
    
    .portfolio-tabs .nav-link {
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .works-section {
        padding: 60px 0;
    }
    
    .work-info h4 {
        font-size: 18px;
    }
    
    .work-info p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .work-link {
        width: 35px;
        height: 35px;
    }
}

/* Portfolio Modal Styles */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.portfolio-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

.modal-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.modal-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 5px;
}

.modal-category {
    color: var(--primary-color);
    margin: 0;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    .modal-container {
        max-width: 95%;
    }
    
    .modal-image {
        max-height: 70vh;
    }
    
    .modal-title {
        font-size: 18px;
    }
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
}

.testimonial-item {
    background-color: var(--bg-white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    margin: 15px;
    height: 100%;
}

.testimonial-image {
    flex: 0 0 100px;
    margin-right: 20px;
}

.testimonial-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    flex: 1;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-position {
    font-size: 14px;
    color: var(--primary-color);
    margin: 0;
}

/* Splide Slider Custom Styles */
.splide__pagination {
    bottom: -30px;
}

.splide__pagination__page {
    background: #ccc;
    opacity: 1;
}

.splide__pagination__page.is-active {
    background: #e67e22;
    transform: scale(1.2);
}

.splide__arrow {
    background: #fff;
    opacity: 1;
    width: 40px;
    height: 40px;
}

.splide__arrow:hover {
    background: #e67e22;
}

.splide__arrow:hover svg {
    fill: #fff;
}

.splide__arrow svg {
    fill: #333;
    width: 14px;
    height: 14px;
}

@media (max-width: 991px) {
    .testimonials-section {
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonial-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .testimonial-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .testimonial-name {
        font-size: 16px;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.form-control {
    height: 50px;
    border: 1px solid var(--border-light);
    border-radius: 0;
    padding: 10px 15px;
    font-size: 15px;
    color: var(--text-medium);
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.form-control::placeholder {
    color: var(--text-medium);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

textarea.form-control {
    height: auto;
    resize: none;
}

.send-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
}

.send-btn:hover {
    background-color: var(--primary-dark);
}

.contact-info {
    height: 100%;
}

.info-item {
    background-color: var(--bg-white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-icon i {
    color: #fff;
    font-size: 20px;
}

.info-content {
    flex: 1;
}

.info-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.info-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
}

@media (max-width: 991px) {
    .contact-section {
        padding: 80px 0;
    }
    
    .contact-form-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
    }
    
    .info-icon i {
        font-size: 16px;
    }
    
    .info-content h4 {
        font-size: 16px;
    }
    
    .info-content p {
        font-size: 14px;
    }
}

/* Client Section Styles */
.client-section {
    padding: 70px 0;
    background-color: var(--bg-white);
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.client-item {
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.client-item img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    object-fit: contain;
}

.client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 991px) {
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .client-section {
        padding: 50px 0;
    }
    
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .client-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
.footer-section {
    background-color: var(--bg-dark);
    color: #fff;
    position: relative;
}

.footer-top {
    padding: 80px 0 50px;
    position: relative;
}

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

.footer-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

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

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

.footer-links a {
    color: var(--text-light);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12px;
    color: var(--primary-color);
}

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

.footer-newsletter {
    position: relative;
    margin-top: 20px;
}

.footer-newsletter input {
    width: 100%;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    padding: 0 60px 0 20px;
    color: #fff;
    font-size: 14px;
}

.footer-newsletter input::placeholder {
    color: var(--text-light);
}

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

.footer-newsletter button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 40px;
    width: 40px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    background-color: var(--bg-darker);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    text-align: start;
}

.footer-credit {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    text-align: right;
}

.footer-credit i {
    color: var(--heart-color);
    margin: 0 3px;
}

.footer-credit a {
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 991px) {
    .footer-top {
        padding: 60px 0 30px;
    }
}

@media (max-width: 767px) {
    .footer-top {
        padding: 50px 0 20px;
    }
    
    .footer-credit {
        text-align: center;
        margin-top: 10px;
    }
    
    .copyright {
        text-align: center;
    }
}

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    text-decoration: none;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-5px);
}

@media (max-width: 767px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575px) {
    .hero-section {
        padding: 10px 0 10px;
    }
}