/* CSS Variables */
:root {
    /* Light Mode (Default) */
    --primary-color: #ff4d30;
    --secondary-color: #333333;
    --text-color: #000000;
    --text-light: #777777;
    --bg-color: #ffffff;
    --bg-light: #f6f6f6;
    --border-color: #f1f1f1;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    --skills-bg: #000000;
    --skills-text: #ffffff;
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --modal-bg: rgba(0, 0, 0, 0.9);
    --modal-text: #ffffff;
}

[data-theme="dark"] {
    /* Dark Mode */
    --primary-color: #ff4d30;
    --secondary-color: #ffffff;
    --text-color: #ffffff;
    --text-light: #bbbbbb;
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --border-color: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --skills-bg: #000000;
    --skills-text: #ffffff;
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --modal-bg: rgba(0, 0, 0, 0.95);
    --modal-text: #ffffff;
}

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

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

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

.loader .circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid transparent;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loader .circle:nth-child(1) {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.loader .circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation-delay: -0.3s;
    border-top-color: var(--primary-color);
}

.loader .circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    animation-delay: -0.6s;
    border-top-color: var(--primary-color);
}

.loader .circle:nth-child(4) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    animation-delay: -0.9s;
    border-top-color: var(--primary-color);
}

.loader .circle:nth-child(5) {
    width: 20%;
    height: 20%;
    top: 40%;
    left: 40%;
    animation-delay: -1.2s;
    border-top-color: var(--primary-color);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 30px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.header.scrolled {
    padding: 15px 0;
    background-color: var(--bg-color);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #ff4d30;
    flex-direction: column;
    justify-content: center;
    padding: 50px 20px;
    transition: all 0.5s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 15px 0;
}

.nav-link {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: black;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: black;
}

.menu-btn {
    display: block;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: transparent;
    border: none;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Animation for burger menu */
.menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.close-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* Navigation for all devices */
.nav-menu.active {
    right: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    padding: 100px 0 50px 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
}

/* No scroll class for when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.timeline-wrapper {
    margin-top: 50px;
    position: relative;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--primary-color);
    transform: translateX(20px);
}

.timeline-item {
    position: relative;
    padding: 30px 0 30px 60px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 40px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.timeline-item:hover {
    background-color: var(--bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
    border-radius: 10px;
    border-bottom-color: transparent;
}

.timeline-period {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 10px;
}

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

.timeline-company {
    font-size: 16px;
    color: var(--text-light);
}



/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.pricing-content {
    padding-right: 30px;
}

.pricing-section .section-subtitle {
    color: var(--primary-color);
}

.pricing-section .section-title {
    margin-bottom: 25px;
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pricing-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pricing-item:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    box-shadow: 0 8px 20px var(--shadow-hover);
    color: white;
}

.pricing-item:hover .pricing-icon {
    color: white;
}

.pricing-item:hover .pricing-name {
    color: white;
}

.pricing-item:hover .pricing-price {
    color: white;
}

.pricing-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
}

.pricing-name {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary-color);
}

.pricing-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}



/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.testimonials-slider {
    position: relative;
    margin-top: 50px;
}

.testimonial-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 10px;
    background-color: var(--bg-color);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.testimonial-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

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

.testimonial-content {
    padding: 25px;
}

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

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

.testimonial-position {
    font-size: 14px;
    color: var(--text-light);
}


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

.testimonials-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.testimonials-counter {
    display: flex;
    align-items: center;
}

.testimonials-counter .current,
.testimonials-counter .total {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.testimonials-counter .progress-bar {
    flex: 1;
    height: 3px;
    background-color: #e0e0e0;
    margin: 0 15px;
    position: relative;
    --progress-width: 33%; /* Default value, will be updated by JS */
    min-width: 120px;
    border-radius: 3px;
    overflow: hidden;
}

.testimonials-counter .progress-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress-width);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.testimonials-navigation {
    display: flex;
    justify-content: flex-end;
}

.testimonials-prev,
.testimonials-next {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.testimonials-prev:hover,
.testimonials-next:hover {
    color: var(--primary-color);
}



/* Skills Section */
.skills-section {
    padding: 80px 0;
    background-color: var(--skills-bg);
    color: var(--skills-text);
    height: 700px;
}

.skills-content {
    padding-right: 30px;
}

.skills-section .section-subtitle {
    color: var(--primary-color);
}

.skills-section .section-title {
    color: #fff;
    margin-bottom: 25px;
}

.section-description {
    font-size: 16px;
    line-height: 1.7;
    color: #aaa; /* Keeping this specific gray for dark background */
    margin-bottom: 40px;
}

.skills-list {
    margin-top: 40px;
}

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

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

.skill-name {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.skill-percentage {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.skill-progress {
    width: 100%;
    height: 5px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
}

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

.skills-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.section-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.portfolio-slider {
    position: relative;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 10px;
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 10px;
}

.portfolio-info {
    margin-top: 15px;
}

.portfolio-category {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    display: inline-block;
    position: relative;
}

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

.portfolio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.portfolio-counter {
    display: flex;
    align-items: center;
}

.portfolio-counter .current,
.portfolio-counter .total {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.portfolio-counter .progress-bar {
    flex: 1;
    height: 3px;
    background-color: #e0e0e0;
    margin: 0 15px;
    position: relative;
    --progress-width: 25%; /* Default value, will be updated by JS */
    min-width: 120px; /* Ensure the progress bar has a minimum width */
    border-radius: 3px;
    overflow: hidden;
}

.portfolio-counter .progress-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress-width);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.portfolio-navigation {
    display: flex;
    justify-content: flex-end;
}

.portfolio-prev,
.portfolio-next {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.portfolio-prev:hover,
.portfolio-next:hover {
    color: var(--primary-color);
}

/* Splide Customization */
.splide__slide {
    opacity: 1; /* Changed from 0.7 to 1 for full opacity */
    transition: all 0.3s ease;
    transform: scale(1); /* Changed from 0.9 to 1 for full size */
}

.splide__slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.testimonials-section .splide__list{
    margin-bottom: 1rem !important;
}

.splide__pagination {
    display: none;
}



.hero-content {
    padding-right: 30px;
}

/* Name styling */
.name {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Main title */
.title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Services section */
.services {
    margin-bottom: 40px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

.service-item span {
    margin-right: 10px;
}

.service-item i {
    font-size: 14px;
    color: var(--text-color);
}

/* Stats section */
.stats {
    display: flex;
    gap: 60px;
}
.stat-item{
    display: flex;
    gap: 15px;
}

.stat-item h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-item p {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-light);
}

/* Hero image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 80%;
    z-index: 2;
    transform: rotate(5deg);
}

.image-frame img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.image-frame::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    top: 30px;
    right: 50px;
    z-index: -1;
    transform: rotate(-10deg);

}

/* Scroll down button */
.scroll-down {
    position: absolute;
    bottom: 50px;
    transform: translateX(-50%);
    text-align: center;
    background: #ff4d30;
    padding: 10px;
    border-radius: 20px;
}

.scroll-down a {
    color: #000;
    font-size: 24px;
    animation: bounce 2s infinite;
}

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



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

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.contact-info-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
}

.contact-info-item span {
    font-size: 16px;
    color: var(--text-color);
}

.contact-form .form-control::placeholder {
    color: var(--text-light); /* Light gray */
}

.contact-form .form-control {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

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

.contact-form textarea.form-control {
    min-height: 150px;
    resize: none;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    background-color: #333333;
}

.submit-btn:hover i {
    transform: translateX(5px);
}


/* Clients Section */
.clients-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.clients-wrapper {
    margin-top: 50px;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

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

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

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



/* Footer Section */
.footer-section {
    padding: 80px 0 30px;
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

.footer-logo a {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.footer-description {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

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

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

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

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

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

.footer-menu li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-menu li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 15px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

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



/* Back to Top Button */
.back-to-top-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

/* Portfolio Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--modal-bg);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    background-color: transparent;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

.modal-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
}

.modal-caption {
    padding: 15px 0;
    color: var(--modal-text);
    text-align: center;
}

.modal-caption h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--modal-text);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

#backToTopBtn {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#backToTopBtn:hover {
    background-color: #333333;
    transform: translateY(-5px);
}


/* Theme Toggle Styles */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* From Uiverse.io by andrew-demchenk0 */ 
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #73C0FC;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  border-radius: 20px;
  left: 2px;
  bottom: 2px;
  z-index: 2;
  background-color: #e8e8e8;
  transition: .4s;
}

.sun svg {
  position: absolute;
  top: 6px;
  left: 36px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.moon svg {
  fill: #73C0FC;
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

/* .switch:hover */.sun svg {
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
 
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* .switch:hover */.moon svg {
  animation: tilt 5s linear infinite;
}

@keyframes tilt {
 
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.input:checked + .slider {
  background-color: #183153;
}

.input:focus + .slider {
  box-shadow: 0 0 1px #183153;
}

.input:checked + .slider:before {
  transform: translateX(30px);
}

[data-theme="dark"] .client-item {
    background-color: var(--bg-light);
}

[data-theme="dark"] .testimonial-content {
    background-color: var(--bg-light);
}

[data-theme="dark"] .contact-info {
    background-color: var(--bg-light);
}

/* Transition for smooth theme switching */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure text remains readable in dark mode */
[data-theme="dark"] .section-title,
[data-theme="dark"] .title {
    color: var(--text-color);
}



/* website responsive */

@media (max-width: 991px) {
    .pricing-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .pricing-item {
        padding: 20px;
    }

    .testimonial-img {
        height: 250px;
    }

    .skills-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .portfolio-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .portfolio-img {
        height: 300px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero-section{
        height: 100%;
        padding: 110px 0 50px 0;
    }

    .image-frame{
        transform: rotate(0deg);
    }
    .image-frame::before{
        transform: rotate(0deg);
        display: none;
    }

    .scroll-down{
        display: none;
    }

    .data-box{
        order: 2;
        padding: 0 35px;  
    }   

    .image-box{
       order: 1;
    }
    
    .title {
        font-size: 36px;
    }
    
    .image-frame {
        width: 100%;
    }
    
    .stats {
        gap: 30px;
    }

    .contact-section .col-lg-5 {
        margin-bottom: 40px;
    }

    .footer-section {
        padding: 60px 0 30px;
    }
    
    .footer-about, .footer-links, .footer-newsletter {
        margin-bottom: 40px;
    }

    .skills-section{
        height: 100%;
    }
}

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

    .pricing-item {
        padding: 15px;
    }
    
    .pricing-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 15px;
    }
    
    .pricing-name {
        font-size: 16px;
    }
    
    .pricing-price {
        font-size: 18px;
    }

    .timeline-item {
        padding: 20px 0 20px 50px;
    }
    
    .timeline-wrapper::before {
        transform: translateX(15px);
    }
    
    .timeline-item::before {
        left: 8px;
        top: 30px;
    }

    .testimonial-img {
        height: 200px;
    }
    
    .testimonial-content {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .testimonial-name {
        font-size: 16px;
    }

    .portfolio-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .portfolio-img {
        height: 250px;
    }

    .hero-section {
        padding: 80px 0;
    }
    
    .title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .services{
        margin-bottom: 15px;
    }
    
    .stat-item h2 {
        font-size: 36px;
    }
    
    .image-frame::before {
        top: 20px;
        right: -20px;
    }

    .client-item {
        height: 100px;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .client-item img {
        max-height: 60px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}


@media (max-width: 576px) {
    .stats {
        gap: 20px;
    }
}