:root {
    --gold2: #d4af37;
    --gold: #d3af37;
    --dark: #333;
    --dark-back: #283444;
    --light: #f8f8f8;
    --accent: #eef2f3;
    --card-light: #ddccb8;
    --border-line: #10b34e4f;
    --text-gold: #a87429;
    --back-yellow: #c2ed09;
    --back-white: white;
    --neptun: #3b65d8;
    --neptun-dark: #144496;
    --text-grey: #868e96;
}


/* Portfolio Section Enhancements */

.portfolio-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.portfolio-item {
    background-color: var(--back-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.portfolio-item .material-icons {
    font-size: 48px;
    color: var(--neptun);
    margin-bottom: 10px;
}

.portfolio-item img {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0;
}

.portfolio-item h3 {
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-item p {
    color: #666;
    font-size: 0.9rem;
}

.services,
.portfolio,
.contact {
    padding: 50px 20px;
    text-align: center;
}

.service-cards,
.portfolio-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.portfolio-item {
    background-color: var(--back-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.portfolio-item h3 {
    margin-top: 10px;
    font-weight: 600;
}


/* Extended Services Section */

.service-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

footer {
    padding: 20px;
    text-align: center;
    background-color: #333;
    color: var(--back-white);
}


/* Optional: Hide scrollbar */

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* Application Types Section */

.app-types {
    padding: 60px 0;
    text-align: center;
    background-color: var(--back-white);
}

.app-types h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-grey);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    width: 80%;
    margin: 0 auto;
}

.app-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-card .material-icons {
    font-size: 40px;
    color: var(--neptun-dark);
    margin-bottom: 10px;
}

.app-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #222;
}

.app-card p {
    font-size: 0.95rem;
    color: #666;
}


/* Responsive Behavior */

@media (max-width: 1000px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 600px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}


/* Advantages Section */

.advantages {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.advantages-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.advantages-image img {
    width: 70%;
    max-width: 300px;
    border-radius: 15px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.advantages-list {
    max-width: 600px;
}

.advantages-list h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--text-grey);
    text-wrap: balance;
}

.advantages-list ul {
    list-style: none;
    padding-left: 20px;
    /* border-left: 3px solid #6200ea; */
    position: relative;
}

.advantages-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}

.advantages-list li span {
    content: '';
    position: absolute;
    left: -10px;
    top: 6px;
    width: 10px;
    height: 10px;
    /* background-color: #6200ea; */
    border-radius: 50%;
}


/* Responsive */

@media (max-width: 768px) {
    .advantages-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .advantages-list ul {
        margin: 0 auto;
        border-left: none;
    }
    .advantages-list li {
        text-align: left;
    }
}


/* Timeline List Styling */

.timeline-list {
    list-style: none;
    margin: 0;
    padding-left: 30px;
    position: relative;
}

.timeline-list::before {
    padding-left: 7px;
    content: '';
    position: absolute;
    left: 23px;
    top: 0px;
    bottom: 15px;
    width: 3px;
    background-color: var(--neptun-dark);
    z-index: 0;
}

.timeline-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    color: #555;
    font-size: 1rem;
}

.timeline-list li span.material-icons {
    position: absolute;
    /* left: -3px; */
    top: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: var(--back-white);
    border: 2px solid var(--neptun-dark);
    border-radius: 50%;
    text-align: center;
    font-size: 18px;
    color: #144496;
    z-index: 1;
}


/* Responsive Adjustment */

@media (max-width: 768px) {
    .advantages-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .timeline-list {
        width: 100%;
        text-align: left;
        padding-left: 0;
    }
    .timeline-list li {
        padding-left: 30px;
        text-align: left;
    }
    .timeline-list {
        padding-left: 50px;
        /* Keep line and icon on the left */
    }
    .timeline-list::before {
        left: 25px;
        /* Keep line behind icons */
    }
    .timeline-list li span.material-icons {
        left: -5px;
        /* Adjust icon over line */
    }
}

.carousel-wrapper {
    position: relative;
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 40px 0;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 40px;
    -webkit-overflow-scrolling: touch;
}

.carousel-container .card {
    flex: 0 0 90%;
    max-width: 90%;
    scroll-snap-align: start;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: var(--back-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


/* Hover effect for larger screens */

@media (hover: hover) {
    .carousel-container .card:hover {
        transform: scale(1.02);
    }
}


/* Carousel nav buttons */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--back-white);
    color: var(--neptun);
    border: 2px solid var(--text-grey);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background-color: var(--neptun);
    color: var(--back-white);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}


/* Optional: hide scrollbar */

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* 🔧 Responsive Tweaks */

@media (max-width: 1024px) {
    .carousel-container .card {
        flex: 0 0 95%;
        max-width: 95%;
    }
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 10px 20px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .carousel-container .card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .carousel-btn {
        top: auto;
        bottom: 10px;
        transform: none;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .carousel-btn.prev {
        left: 15px;
    }
    .carousel-btn.next {
        right: 15px;
    }
}

.card-service {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: left;
}

.card-service h3 {
    font-weight: 600;
    color: var(--neptun-dark);
    text-align: center;
}

.card-service ul {
    margin-top: 10px;
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
}

.card-service ul li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.card-service p {
    font-size: 1.0rem;
}

.tech-marquee-section {
    background-color: #f3f4f6;
    padding: 20px 0;
    overflow: hidden;
}

.tech-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.marquee-track span {
    display: inline-block;
    padding: 10px 20px;
    background: var(--back-white);
    border: 1px solid #ccc;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    vertical-align: top;
}

.tech-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: top;
    max-width: none;
}


/* Animation */

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Responsive */

@media (max-width: 768px) {
    .marquee-track {
        font-size: 1rem;
        gap: 20px;
    }
    .tech-item img {
        width: 20px;
        height: 20px;
    }
}