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

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

.loader {
    text-align: center;
}

.loader-inner {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto 20px;
}

.circle {
    width: 100%;
    height: 100%;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

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

@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

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

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

/* Dark Theme (Default) */
:root {
    /* Dark theme colors */
    --primary-color: #02dabc;
    --dark-bg: #18191d;
    --darker-bg: #111111;
    --text-color: #fff;
    --text-muted: rgb(155, 155, 155);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-bg: #191b1e;
    --border-color: rgba(255, 255, 255, 0.05);
    --navbar-bg: rgba(24, 25, 29, 0.8);
}

/* Light Theme */
[data-theme="light"] {
    --primary-color: #02dabc;
    --dark-bg: #f5f5f5;
    --darker-bg: #e9ecef;
    --text-color: #343a40;
    --text-muted: #6c757d;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.05);
    --navbar-bg: rgba(248, 249, 250, 0.8);
}

/* Theme Toggle Button */
.btn-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), -5px -5px 10px rgba(255, 255, 255, 0.03);
}

.btn-theme-toggle:hover {
    transform: scale(1.1);
}

[data-theme="light"] .btn-theme-toggle i.fa-sun {
    display: none;
}

[data-theme="light"] .btn-theme-toggle i.fa-moon {
    display: inline-block;
}

.btn-theme-toggle i.fa-moon {
    display: none;
}

.btn-theme-toggle i.fa-sun {
    display: inline-block;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.section-padding {
    padding: 50px 0;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title p {
    color: var(--text-muted);
}

/* Navigation */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(8.6px);
    -webkit-backdrop-filter: blur(8.6px);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.02em;
    color: var(--text-color);
}

.logo-text {
    color: var(--text-color);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin: 0 12px;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s, color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--text-color);
}

.btn-hire {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 10px 10px 20px rgb(0 0 0 / 31%), -10px -10px 20px rgb(255 255 255 / 6%);
    letter-spacing: 0.5px;
}

.btn-hire:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    padding: 150px 0 80px;
    position: relative;
    background-color: var(--dark-bg);
    overflow: hidden;
    margin-top: 0;
}



/* Column 1: Profile Picture */
.profile-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.profile-image {
    padding: 10px;
    width: 90%;
    height: 400px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--primary-color);
    border-radius: 200px 200px 16px 16px;
    z-index: -1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 200px 200px 16px 16px;
    background-color: #000;
}

.experience-counter {
    display: flex;
    align-items: center;
    margin: 30px auto 0;
    justify-content: flex-start;
    width: fit-content;
}

.counter-number {
    font-size: 42px;
    font-weight: 700;
    margin-right: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-text {
    font-size: 15px;
    line-height: 1.3;
    opacity: 0.9;
}

/* Column 2: Content Data */
.hero-text {
    padding: 0;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    font-weight: 500;
}

/* Better typewriter animation */
.typewriter {
    height: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.txt-rotate {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.01em;
    position: relative;
    padding-right: 8px;
    font-style: italic;
}

.txt-rotate::after {
    content: '|';
    position: absolute;
    right: 0;
    top: 0;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--text-color);
    text-align: start;
    letter-spacing: 0.01em;
}

.highlight {
    color: var(--primary-color);
    margin-bottom: 0;
    position: relative;
}

.description {
    font-family: 'Raleway', sans-serif;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.6;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--text-color);
    text-align: start;
}

.cta-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-color);
    margin-right: 20px;
    transition: all 0.3s;
    font-size: 16px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), 
                -5px -5px 10px rgba(255, 255, 255, 0.03);
}

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

/* Contact Form */
.contact-form {
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), -10px -10px 20px rgba(255, 255, 255, 0.03);
    background-color: var(--card-bg);

}

.form-group {
    margin-bottom: 25px;
}

/* Bootstrap form control override */
.form-control:focus{
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--text-color);
    outline: none;
}

[data-theme="light"] .form-control::placeholder {
    color: #6c757d;
}

:root .form-control::placeholder {
    color: #9b9b9b;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    color: #878e99;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    background-color: var(--card-bg);
    border: none;
    border-radius: 5px;
    padding: 15px;
    color: var(--text-color);
    width: 100%;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark mode form shadows */
:root .form-control {
    box-shadow: inset 8px 8px 12px rgba(0, 0, 0, 0.25), 
                inset -8px -8px 12px rgba(255, 255, 255, 0.03);
}

/* Light mode form shadows */
[data-theme="light"] .form-control {
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.1), 
                inset -3px -3px 6px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    outline: none;
}

/* Dark mode focus state */
:root .form-control:focus {
    box-shadow: inset 8px 8px 12px rgba(0, 0, 0, 0.3), 
                inset -8px -8px 12px rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

/* Light mode focus state */
[data-theme="light"] .form-control:focus {
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.15), 
                inset -3px -3px 6px rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
}

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

.btn-send {
    background-color: var(--primary-color);
    color: white;
    padding: 14px 25px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    width: 100%;
    text-transform: uppercase;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), 
                -5px -5px 10px rgba(255, 255, 255, 0.03);
    letter-spacing: 1px;
}

.btn-send i {
    margin-left: 10px;
}

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

/* About Me Section */

.about-section {
    padding: 50px 0;
    background-color: var(--dark-bg);
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    letter-spacing: 0.01em;
}

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

.about-header {
    margin-bottom: 40px;
}

.about-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: 0.01em;
}

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

/* Info Cards */
.info-card {
    background-color: var(--card-bg);
    margin:0 15px;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), 
                -10px -10px 20px rgba(255, 255, 255, 0.03);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.info-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.01em;
}

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

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

.info-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 15px;
}

.info-list li span {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 5px;
    display: inline-block;
    min-width: 90px;
}

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

.expertise-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    padding-left: 20px;
}

.expertise-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Skills */
.skills-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

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

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

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

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

.progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

/* Buttons */
.about-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-about, .btn-about-secondary {
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.171), -10px -10px 20px rgb(255 255 255 / 6%);
    letter-spacing: 0.5px;
}

.btn-about {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
}

.btn-about-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
}

.btn-about:hover, .btn-about-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
}

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

.service-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), 
                -10px -10px 20px rgba(255, 255, 255, 0.03);
    margin: 15px;
}

.service-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 28px;
    transition: all 0.3s ease;
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.2), 
                inset -5px -5px 10px rgba(255, 255, 255, 0.03);
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    letter-spacing: 0.01em;
}

.service-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), 
                -5px -5px 10px rgba(255, 255, 255, 0.03);
}

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

.portfolio-filter {
    margin-bottom: 30px;
}

.btn-filter {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.btn-filter.active, .btn-filter:hover {
    color: var(--text-color);
    background-color: var(--card-bg);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), 
                -5px -5px 10px rgba(255, 255, 255, 0.03);
}

.portfolio-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), 
                -10px -10px 20px rgba(255, 255, 255, 0.03);
    background-color: var(--card-bg);
    transition: all 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px; /* Fixed height for all portfolio images */
}

.portfolio-image img {
    transition: all 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without distortion */
    object-position: center; /* Centers the image */
}

.portfolio-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;
}

.portfolio-overlay-content {
    text-align: center;
}

.portfolio-link, .portfolio-zoom {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    display: inline-block;
    margin: 0 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: inset 3px 3px 5px rgba(0, 0, 0, 0.2), 
                inset -3px -3px 5px rgba(255, 255, 255, 0.03);
}

.portfolio-link:hover, .portfolio-zoom:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.portfolio-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
    letter-spacing: 0.01em;
}

.portfolio-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 500;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

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

.portfolio-card:hover .portfolio-link, 
.portfolio-card:hover .portfolio-zoom {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-card:hover .portfolio-link {
    transition-delay: 0.1s;
}

.portfolio-card:hover .portfolio-zoom {
    transition-delay: 0.2s;
}

/* Clients Section */
.clients-section {
    padding: 50px 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.clients-marquee-container {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    padding: 30px 0;
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
}

.clients-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: fit-content;
    padding: 20px 0;
}

.client-item {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    margin: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), 
                -5px -5px 10px rgba(255, 255, 255, 0.03);
}

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

.client-item:hover {
    transform: translateY(-5px);
}

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

.testimonial-wrapper {
    display: flex;
    gap: 50px;
    margin: 0 auto;
    padding: 30px 50px;
    align-items: stretch;
}

.testimonial-client-card {
    flex: 0 0 350px;
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.15), -4px -4px 20px 0px rgb(255 255 255 / 5%);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    justify-content: center;
}

.testimonial-client-card:hover {
    transform: translateY(-10px);
}

.testimonial-client-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-client-card:hover:before {
    opacity: 1;
}

.testimonial-content-card {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.15), -4px -4px 20px 0px rgb(255 255 255 / 5%);
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-content-card:hover {
    transform: translateY(-10px);
}

.testimonial-image-container {
    margin: 25px 0;
    text-align: center;
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 5px solid var(--primary-color);
}

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

.testimonial-client-card:hover .testimonial-image {
    transform: scale(1.1);
}

.testimonial-company {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2.5px;
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(2, 218, 188, 0.1);
    border-radius: 20px;
}

.testimonial-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    letter-spacing: 0.01em;
}

.testimonial-name:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.testimonial-position {
    font-family: 'Raleway', sans-serif;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 0;
    font-style: italic;
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    opacity: 0.15;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-content-card:hover .testimonial-quote-icon {
    opacity: 0.25;
    transform: translateY(-5px) rotate(10deg);
}

.testimonial-project {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    letter-spacing: 0.01em;
}

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

.testimonial-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(2, 218, 188, 0.05);
    border-radius: 5px;
    font-style: italic;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.testimonial-rating i {
    margin: 0 2px;
    transition: all 0.3s ease;
}

.testimonial-content-card:hover .testimonial-rating i {
    transform: scale(1.2);
}

.testimonial-text {
    font-family: 'Raleway', sans-serif;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
}

/* Responsive styles for testimonials */
@media (max-width: 991px) {
    .testimonial-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .testimonial-client-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        padding: 30px 20px;
    }
    
    .testimonial-content-card {
        padding: 30px 25px;
    }
    
    .testimonial-text {
        padding-left: 15px;
    }
    
    .testimonial-quote-icon {
        font-size: 50px;
        top: 15px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .testimonial-wrapper {
        gap: 20px;
    }
    
    .testimonial-client-card {
        padding: 25px 15px;
    }
    
    .testimonial-image-container {
        width: 120px;
        height: 120px;
    }
    
    .testimonial-name {
        font-size: 20px;
    }
    
    .testimonial-content-card {
        padding: 25px 20px;
    }
    
    .testimonial-project {
        font-size: 20px;
    }
    
    .testimonial-text {
        font-size: 14px;
        line-height: 1.6;
    }
}

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

.contact-info-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    padding: 30px;
    height: 100%;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark mode card shadow */
:root .contact-info-card {
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), -7px -9px 20px 0px rgba(255, 255, 255, 0.03);
}

/* Light mode card shadow */
[data-theme="light"] .contact-info-card {
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.05), -7px -9px 20px 0px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-form-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    padding: 30px;
    height: 100%;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark mode card shadow */
:root .contact-form-card {
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), -7px -9px 20px 0px rgba(255, 255, 255, 0.03);
}

/* Light mode card shadow */
[data-theme="light"] .contact-form-card {
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.05), -7px -9px 20px 0px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-image-container {
    margin-bottom: 20px;
}

.contact-image {
    width: 100%;
    border-radius: 0;
    object-fit: cover;
}

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

.contact-position {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
}

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

.contact-details {
    margin-bottom: 30px;
}

.contact-detail {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-detail span {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 10px;
}

.contact-social-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), -5px -5px 10px rgba(255, 255, 255, 0.03);
}

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

/* Contact Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.btn-send-message {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-send-message i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

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

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

/* Footer Section */
.footer-section {
    background-color: var(--card-bg);
    padding: 70px 0 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: 0.01em;
}

 h2 span {
    color: var(--primary-color);
}

.footer-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 400px;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

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

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

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

.footer-menu li a {
    font-family: 'Raleway', sans-serif;
    color: var(--text-muted);
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

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

.footer-contact li {
    font-family: 'Raleway', sans-serif;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social .social-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

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

.copyright {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .footer-logo, .footer-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-links {
        margin-top: 40px;
    }
    
    .footer-title {
        margin-top: 20px;
    }
}

/* Splide Custom Styling */
.splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), 
                -5px -5px 10px rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.splide__arrow, .splide__arrow:disabled{
    opacity: 1;
}

.splide__arrow:hover {
    background-color: var(--primary-color);
}

.splide__arrow--prev {
    left: -20px;
}

.splide__arrow--next {
    right: -20px;
}

.splide__pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.splide__pagination__page {
    width: 12px;
    height: 12px;
    background-color: var(--text-muted);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2), 
                -3px -3px 6px rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.splide__pagination__page.is-active {
    background-color: var(--primary-color);
    transform: scale(1.5);
    opacity: 1;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Container sizing */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 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;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

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

/* Portfolio Modal Styles */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.show {
    display: block;
    opacity: 1;
}

.portfolio-modal-content {
    position: relative;
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-modal.show .portfolio-modal-content {
    transform: translateY(0);
    opacity: 1;
}

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

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

.portfolio-modal-image-container {
    width: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
}

.portfolio-modal-image-container img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-modal-details {
    padding: 25px;
}

.portfolio-modal-details h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

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

.portfolio-modal-details p {
    color: var(--text-muted);
    line-height: 1.6;
}

.portfolio-modal-details p:nth-child(2) {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    .portfolio-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .portfolio-modal-details {
        padding: 20px;
    }
    
    .portfolio-modal-details h3 {
        font-size: 20px;
    }
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .service-card{
        margin: 0;
    }
    
    .title {
        font-size: 34px;
    }
    
    .description {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .profile-container {
        margin: 0 auto 20px;
        padding-top: 60px;
    }

    .profile-image{
        height: 100;
    }
    
    .hero-text {
        text-align: center;
        padding: 30px 0;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 100px 0 40px;
    }

    .profile-container {
        padding-top: 0;
    }
    
    .title {
        font-size: 30px;
    }
    
    .navbar-collapse {
        background-color: var(--darker-bg);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }
    
    .btn-hire {
        margin-top: 15px;
        display: inline-block;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .col-lg-4 {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    
    .counter-number {
        font-size: 30px;
    }

    .section-title{
        font-size: 30px;

    }

    .txt-rotate{
        font-size: 35px;
    }
    
    .counter-text {
        font-size: 12px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .description {
        font-size: 13px;
    }
   
    .col-lg-4 {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .section-padding {
        padding: 30px 0;
    }
    
    .counter-number {
        font-size: 30px;
    }
    
    .counter-text {
        font-size: 12px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .description {
        font-size: 16px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .service-card,
    .portfolio-card,
    .info-card {
        margin: 10px 0;
    }
    
    /* Fix for any horizontal scrolling */
    html, body {
        overflow-x: hidden;
        width: 100vw;
    }
}
