:root {
    --primary-color: #060ae4ff;
    --primary-light: #2f32e0ff;
    --secondary-color: #008cffff;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
    --info-color: #0ea5e9;
    --secondary-light: rgba(140, 216, 240, 1)ff;
    --dark-color: #1a1a1a;
    --light-color: #f9f9f9;
    --gray-color: #e0e0e0;
    --section-radius: 12px;
    --section-margin: 20px 0;
    --section-padding: 20px;
    --section-shadow: 0 8px 30px rgba(2, 6, 23, 0.15);
    --primary-fonts: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --secondary-fonts: 'Georgia', serif;
    --nav-radius: 1000px;
    --section-width: 97%;
    --nav-padding: 30px 15px;
    --nav-height: 0px;
    --section-bg-color: #f9f9f9;
    --section-txt-color: #333;
    --btn-radius: 100px;
    --transition: all 0.3s ease;
    --grid-gap: 20px;
    --common-spacing: 10px;
    --danger-bg-color: rgba(255, 77, 77, 0.1);

    --gradient-color-1: rgba(255, 122, 24, 0.1);
    /* Primary color transparent */
    --gradient-color-2: rgba(0, 198, 255, 0.1);
    /* Secondary color transparent */
    --gradient-color-3: rgba(106, 27, 154, 0.1);
    /* Purple */
    --gradient-color-4: rgba(244, 67, 54, 0.1);
    /* Red */
    --gradient-angle: 135deg;
}

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

/** Global Styles **/
body {
    font-family: var(--primary-fonts);
    padding-top: var(--nav-height);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: white;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 30px 0;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
}

li {
    list-style: none;
}

input,
textarea,
select {
    width: 100%;
    padding: var(--common-spacing);
    border-radius: var(--section-radius);
    border: 1px solid var(--gray-color);
    font-family: var(--primary-fonts);
    transition: var(--transition);
}

input[type=checkbox],
input[type=radio],
input[type=color] {
    width: auto;
    margin-right: var(--common-spacing);
    padding: 0;
}

input[type=color] {
    min-width: 50px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.2);
}

textarea {
    height: 150px;
    resize: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/****   Layout Styles   ****/
section,
header {
    margin: var(--section-margin);
    text-align: center;
    font-family: var(--primary-fonts);
}

section .container,
header .container {
    width: var(--section-width);
    border-radius: var(--section-radius);
    padding: var(--section-padding);
    box-shadow: var(--section-shadow);
    margin: auto;
    background: var(--section-bg-color);
    color: var(--section-txt-color);
    overflow: hidden;
}

.container {
    position: relative;
}

/* Navigation */
nav {
    background: white;
    box-shadow: var(--section-shadow);
    z-index: 1000;
    padding: var(--nav-padding);
    top: 30px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--common-spacing);
    font-weight: bold;
    font-size: 1.2rem;
}

.yc-logo {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.nav-links {
    display: none;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    gap: var(--common-spacing);
}

.nav-links li {
    transition: var(--transition);
}

.nav-links a {
    padding: 8px 12px;
    border-radius: var(--btn-radius);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 122, 24, 0.1);
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu .nav-links a {
    font-size: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: var(--section-padding);
    background: var(--dark-color);
    color: white;
}

#edit-page-layout {
    display: grid;
    grid-template-columns: 2fr 10fr;
    gap: var(--common-spacing);
    max-width: var(--section-width);
    margin: var(--common-spacing) auto;
    padding: var(--common-spacing);
}

/****   Utility Styles   ****/
.badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--common-spacing);
    margin-top: var(--common-spacing);
}

.badge {
    background: var(--gray-color);
    border-radius: 100px;
    font-size: 12px;
    padding: 5px 12px;
    font-weight: 500;
    transition: var(--transition);
}

.badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn,
button {
    color: white;
    padding: var(--common-spacing) calc(var(--common-spacing) * 2);
    border: 2px solid;
    border-radius: var(--btn-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 122, 24, 0.3);
}

.btn-danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.btn-danger:hover {
    background: var(--danger-color);
    color: white;
}

.btn-warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.btn-info {
    border-color: var(--info-color);
    color: var(--info-color);
}

.btn-success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-success:hover {
    background: var(--success-color);
    color: white;
}

.cta-btn {
    background: var(--primary-color);
    color: white;
}

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

.alt-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.alt-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--common-spacing);
    margin-top: var(--common-spacing);
    flex-wrap: wrap;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--grid-gap);
    grid-template-columns: repeat(var(--grid-columns, 1), 1fr);
    margin: 30px 0;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--section-radius);
    padding: var(--common-spacing);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-card {
    text-align: center;
    padding: var(--common-spacing);
}

.service-card h4 {
    margin: var(--common-spacing) 0;
    color: var(--primary-color);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.horizontal-cards .card {
    display: flex;
    align-items: center;
    gap: var(--common-spacing);
    text-align: left;
    margin: var(--common-spacing) 0;
}

.horizontal-cards .message {
    margin: var(--common-spacing) 0;
    font-style: italic;
}

/* Testimonials */
#testimonials .img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
    margin: auto;
}

#testimonials .section-title {
    margin-bottom: 50px;
}

/* Testimonials Carousel */
.testimonials-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 0 var(--common-spacing);
    box-sizing: border-box;
}

.testimonial-card .card {
    gap: var(--common-spacing);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: var(--common-spacing);
    gap: var(--common-spacing);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: var(--common-spacing);
    gap: var(--common-spacing);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
}

.section-title {
    margin: var(--common-spacing) 0;
    position: relative;
    display: inline-block;
}

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

/* Contact Form */
#contact-us-form {
    margin: 1rem auto;
    max-width: 80%;
    text-align: left;
}

.input-group {
    margin: 0.5rem 0;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-footer {
    display: flex;
    align-items: center;
    gap: var(--common-spacing);
    flex-wrap: wrap;
    justify-content: space-between;
    margin: var(--common-spacing) 0;
}

.contact-alternate {
    font-size: 14px;
    margin: 0;
}

/* Mobile Cards (Horizontal Scroll) */
.mobile-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.mobile-cards::-webkit-scrollbar {
    height: 6px;
}

.mobile-cards::-webkit-scrollbar-track {
    background: var(--gray-color);
    border-radius: 10px;
}

.mobile-cards::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.mobile-cards .card {
    position: relative;
    min-width: 200px;
    height: 350px;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    background-color: var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
    scroll-snap-align: start;
}

.mobile-cards .card img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mobile-cards .card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.mobile-cards .card:hover .card-content {
    transform: translateY(0);
}

.mobile-cards .card:hover img {
    transform: scale(1.05);
}

/* Flex Layout */
.flex {
    display: flex;
    gap: 30px;
    align-items: center;
}

.flex-reverse {
    flex-direction: row-reverse;
}

.flex-col {
    flex: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive styles */
@media (min-width: 640px) {
    :root {
        --section-margin: 40px 0;
        --section-width: 80%;
        --nav-height: 100px;
        --nav-padding: 10px 15px;
        --grid-gap: 30px;
    }

    nav {
        position: fixed;
        transform: translateX(-50%);
        border-radius: var(--nav-radius);
        width: 90%;
    }


}

@media (min-width: 850px) {
    #hambtn {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .testimonial-card .card {
        flex-direction: row;
    }

    .input-group-wrap {
        display: flex;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .flex {
        flex-direction: column;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    #contact-us-form {
        max-width: 100%;
    }


}

/* Add this new style for section gradients */
section .container::before,
header .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    border-radius: var(--section-radius);
    pointer-events: none;
}

/* Unique gradients for each section */
header .container::before {
    background: linear-gradient(var(--gradient-angle),
            var(--gradient-color-1),
            var(--gradient-color-2),
            transparent 70%);
}

#about-us .container::before {
    background: linear-gradient(var(--gradient-angle),
            var(--gradient-color-2),
            var(--gradient-color-3),
            transparent 70%);
}

#services .container::before {
    background: linear-gradient(var(--gradient-angle),
            var(--gradient-color-3),
            var(--gradient-color-1),
            transparent 70%);
}

#samples .container::before {
    background: linear-gradient(var(--gradient-angle),
            var(--gradient-color-4),
            var(--gradient-color-2),
            transparent 70%);
}

#whyus .container::before {
    background: linear-gradient(var(--gradient-angle),
            var(--gradient-color-1),
            var(--gradient-color-4),
            transparent 70%);
}

#testimonials .container::before {
    background: linear-gradient(var(--gradient-angle),
            var(--gradient-color-2),
            var(--gradient-color-3),
            transparent 70%);
}

#contact-us .container::before {
    background: linear-gradient(var(--gradient-angle),
            var(--gradient-color-3),
            var(--gradient-color-4),
            transparent 70%);
}

/* Ensure content stays above the gradient */
section .container>*,
header .container>* {
    position: relative;
    z-index: 1;
}

/* Optional: Add animation to gradients */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Add this if you want animated gradients */
section .container::before,
header .container::before {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

.alert {
    display: none;
    position: fixed;
    color: white;
    padding: 2rem;
    z-index: 100;
    border-radius: 12px;
    font-size: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    margin: 50px 0;
    width: 90%;
}

.alert.success {
    background: #19a719;
}

.alert.error {
    background: #a71919;
}

.logout-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    height: 15px;
}

/* Hide default checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.4s;
    width: 30px;

}

.slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    transition: 0.4s;
}

/* Checked state */
.toggle-switch input:checked+.slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked+.slider:before {
    transform: translateX(15px);
}

.toggle-switch {

    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-label-text {
    margin-left: 30px;
    font-size: 1rem;
    color: #333;
}

.col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.list .list-item {
    display: flex;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    justify-content: space-between;
}

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

.list-icon {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.list-info h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
}

.list-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #4b5563;
}

.loader {
    display: inline-block;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #3498db;
    width: 1em;
    height: 1em;
    animation: spin 2s linear infinite;
}

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

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

.table-wrapper {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: fit-content;
    margin: auto;
}

table,
th,
td {
    border: 1px solid;
}

td,
th {
    padding: var(--common-spacing);
}
 
.regular-form {
    max-width: 800px;
    width: 90%;
    margin: auto;
    box-shadow: var(--section-shadow);
    padding: var(--section-padding);
    border-radius: var(--section-radius);
}