/* Main Colors */
:root {
    --primary-color: #3a7bdb; /* Blue from the app */
    --secondary-color: #f5a742; /* Orange */
    --green-color: #67b36e; /* Green */
    --purple-color: #b567b2; /* Purple */
    --deep-purple-color: #6567b2; /* Deep Purple */
    --text-color: #333;
    --light-text: #fff;
    --dark-background: #222;
}
html, body {
  width: 100vw;
  overflow-x: hidden;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Accounts for fixed header */
}

body {
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container and General Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    width: 200px;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

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

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: var(--dark-background);
    padding: 5px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
}

.navbar-logo span {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

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

.nav-link:hover::after {
    width: 100%;
}

.quote-nav-btn {
    background-color: var(--secondary-color);
    color: var(--dark-background);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quote-nav-btn:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    transition: all 0.3s ease-in-out;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--purple-color));
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom right, var(--primary-color), var(--deep-purple-color));
    color: var(--light-text);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 123, 219, 0.1) 0%, rgba(101, 103, 178, 0.1) 100%);
    opacity: 0.2;
    z-index: 0;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--dark-background);
    color: var(--light-text);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    z-index: 1;
}

/* Animated hue background */
.services-bg-hue {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(58, 123, 219, 0.03),
        rgba(245, 167, 66, 0.03),
        rgba(103, 179, 110, 0.03),
        rgba(181, 103, 178, 0.03),
        rgba(101, 103, 178, 0.03),
        rgba(58, 123, 219, 0.03)
    );
    background-size: 400% 400%;
    z-index: -1;
    animation: hueRotate 15s ease infinite;
}

@keyframes hueRotate {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Enhanced service cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.service-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    color: var(--light-text);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover h3 {
    color: var(--light-text);
}

/* Service card top borders with animated gradient */
.service-card.app-dev {
    border-top: 5px solid var(--secondary-color);
}

.service-card.crm {
    border-top: 5px solid var(--green-color);
}

.service-card.ui-ux {
    border-top: 5px solid var(--purple-color);
}

.service-card.ai {
    border-top: 5px solid var(--deep-purple-color);
}

.service-card.backend {
    border-top: 5px solid var(--primary-color);
}

/* Animated gradient border option */
.service-card:hover.app-dev,
.service-card:hover.crm,
.service-card:hover.ui-ux,
.service-card:hover.ai,
.service-card:hover.backend {
    border-top: 5px solid transparent;
    background-clip: padding-box;
}

.service-card:hover::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color),
        var(--purple-color),
        var(--deep-purple-color)
    );
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover .service-icon {
    color: var(--light-text);
    transform: scale(1.1);
}

/* Enhanced typography */
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
    position: relative;
}

.service-card p {
    line-height: 1.7;
    transition: color 0.3s ease;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .services {
        padding: 4rem 0;
    }
    
    .service-grid {
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        font-size: 2.3rem;
    }
}

@media screen and (max-width: 480px) {
    .service-card {
        padding: 1.8rem;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background-color: #fff;
}

.process-steps {
    max-width: 800px;
    margin: 2rem auto;
}

.process-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 70px;
    left: 35px;
    width: 2px;
    height: calc(100% - 40px);
    background-color: var(--primary-color);
    opacity: 0.3;
}

.step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 2rem;
    z-index: 1;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.testimonials::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--deep-purple-color) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: """;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.testimonial-author::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    margin-right: 10px;
    opacity: 0.6;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background-color: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-question {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--deep-purple-color) 100%);
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 123, 219, 0.1) 0%, rgba(101, 103, 178, 0.1) 100%);
    opacity: 0.2;
    z-index: 0;
}

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

.cta h2 {
    color: var(--light-text);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-background);
    color: var(--light-text);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    margin: 1.5rem 0;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.875rem;
    opacity: 0.8;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--deep-purple-color);
    transform: translateY(-3px);
}

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

.loader {
    display: flex;
    align-items: center;
}

.loader-bar {
    width: 10px;
    height: 30px;
    margin: 0 5px;
    background-color: var(--primary-color);
    animation: loader 1s infinite;
    border-radius: 5px;
}

.loader-bar:nth-child(2) {
    animation-delay: 0.1s;
    background-color: var(--secondary-color);
}

.loader-bar:nth-child(3) {
    animation-delay: 0.2s;
    background-color: var(--purple-color);
}

.loader-bar:nth-child(4) {
    animation-delay: 0.3s;
    background-color: var(--green-color);
}

.loader-bar:nth-child(5) {
    animation-delay: 0.4s;
    background-color: var(--deep-purple-color);
}

@keyframes loader {
    0% {
        height: 30px;
    }
    50% {
        height: 60px;
    }
    100% {
        height: 30px;
    }
}

/* Responsive styles */
@media screen and (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--dark-background);
        width: 280px;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        padding: 50px 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 25px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
    
    .quote-nav-btn {
        margin: 15px 0;
    }
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 80%;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.portfolio::before, .portfolio::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    z-index: 0;
}

.portfolio::before {
    background-color: var(--primary-color);
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.portfolio::after {
    background-color: var(--secondary-color);
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.portfolio-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
    overflow: hidden;
    padding: 3rem 0;
}

.portfolio-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    height: 600px;
}

.portfolio-slide {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* iPhone Frame Styling */
.portfolio-item.mobile-app {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    height: 550px;
    width: 280px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item.mobile-app:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.18);
}

.device-mockup {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-frame {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 38px;
    overflow: hidden;
    background-color: #111;
    box-shadow: 
        0 0 0 2px #444, 
        inset 0 0 5px rgba(0, 0, 0, 0.5);
    padding: 8px;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 30px;
    background-color: #111;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.iphone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    z-index: 10;
}

.app-screenshot {
    position: relative;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 30px;
    z-index: 1;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
    color: var(--light-text);
    padding: 2rem;
    transform: translateY(75%);
    transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    z-index: 3;
    border-radius: 0 0 38px 38px;
}

.portfolio-item.mobile-app:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
    color: var(--light-text);
    font-size: 1.4rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.app-features span {
    background-color: rgba(58, 123, 219, 0.8);
    color: var(--light-text);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.app-features span i {
    margin-right: 5px;
}

.portfolio-item.mobile-app:hover .app-features span {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item.mobile-app:hover .app-features span:nth-child(2) {
    transition-delay: 0.2s;
}

.portfolio-item.mobile-app:hover .app-features span:nth-child(3) {
    transition-delay: 0.3s;
}

/* Portfolio Navigation Buttons */
.portfolio-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 4;
    padding: 0 30px;
}

.portfolio-nav button {
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-nav button i {
    font-size: 1rem;
}

.portfolio-nav button:hover {
    opacity: 1;
    background-color: var(--deep-purple-color);
    transform: scale(1.1);
}

/* Portfolio Dots */
.portfolio-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.8rem;
}

.portfolio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(58, 123, 219, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive styling for mobile devices */
@media screen and (max-width: 768px) {
    .portfolio-slider {
        height: 520px;
    }

    .portfolio-item.mobile-app {
        height: 480px;
        width: 240px;
    }
    
    .iphone-notch {
        height: 25px;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.85rem;
    }
    
    .app-features span {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .portfolio-nav {
        padding: 0 15px;
    }
    
    .portfolio-nav button {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .portfolio-slider {
        height: 480px;
    }

    .portfolio-item.mobile-app {
        height: 440px;
        width: 220px;
    }
    
    .iphone-notch {
        height: 20px;
        width: 40%;
    }
    
    .iphone-home-indicator {
        width: 30%;
        height: 4px;
    }
    
    .portfolio-overlay {
        padding: 1.2rem;
        transform: translateY(65%);
    }
    
    .portfolio-overlay h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .app-features {
        gap: 0.5rem;
    }
    
    .app-features span {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}
    /* Ensure the chat widget appears above other elements */
    .tawk-min-container {
        z-index: 10000 !important;
    }
    
    /* Custom animation for the chat bubble */
    @keyframes pulse-animation {
        0% {
            box-shadow: 0 0 0 0 rgba(58, 123, 219, 0.4);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(58, 123, 219, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(58, 123, 219, 0);
        }
    }
    
    /* Apply animation to the chat bubble when minimized */
    .tawk-min-container .tawk-button {
        animation: pulse-animation 2s infinite;
    }
    
    /* Hide chat on specific pages if needed */
    body.no-chat .tawk-min-container {
        display: none !important;
    }