:root {
    --color-sky-blue: #B3E0FF;
    --color-peach: #FFDAB9;
    --color-lavender: #E6E6FA;
    --color-mint: #C8F0C8;
    --color-background-light: #F8F8F8;
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --color-primary-accent: #6C63FF; /* A slightly richer purple for primary buttons */
    --color-secondary-accent: #FFA07A; /* A soft orange for secondary buttons */

    --font-family-poppins: 'Poppins', sans-serif;

    --clay-border-radius: 20px;
    --clay-shadow-1: 8px 8px 16px rgba(0, 0, 0, 0.08), -8px -8px 16px rgba(255, 255, 255, 0.7);
    --clay-shadow-2: 12px 12px 24px rgba(0, 0, 0, 0.1), -12px -12px 24px rgba(255, 255, 255, 0.7);
    --clay-inset-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.05), inset -5px -5px 10px rgba(255, 255, 255, 0.5);
    --clay-hover-transform: translateY(-5px);
    --clay-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Elastic motion */
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-poppins);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    overflow-x: hidden; /* Prevent horizontal scroll due to potential overflow */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--color-text-dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.clay-card {
    background-color: var(--color-background-light);
    border-radius: var(--clay-border-radius);
    box-shadow: var(--clay-shadow-1);
    padding: 30px;
    transition: var(--clay-transition);
    position: relative;
}

.clay-card:hover {
    transform: var(--clay-hover-transform);
    box-shadow: var(--clay-shadow-2);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 600;
    text-align: center;
    transition: var(--clay-transition);
    cursor: pointer;
    box-shadow: var(--clay-shadow-1);
}

.btn-primary {
    background-color: var(--color-primary-accent);
    color: var(--color-text-light);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
    background-color: #5A54D9; /* Slightly darker */
    transform: var(--clay-hover-transform);
    box-shadow: 9px 9px 18px rgba(0, 0, 0, 0.15), -9px -9px 18px rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background-color: var(--color-peach);
    color: var(--color-text-dark);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.08), -6px -6px 12px rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background-color: #FFC0CB; /* Slightly softer peach */
    transform: var(--clay-hover-transform);
    box-shadow: 9px 9px 18px rgba(0, 0, 0, 0.12), -9px -9px 18px rgba(255, 255, 255, 0.7);
}

.btn-tertiary {
    background-color: var(--color-mint);
    color: var(--color-text-dark);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.08), -6px -6px 12px rgba(255, 255, 255, 0.6);
}

.btn-tertiary:hover {
    background-color: #A0F0A0; /* Slightly brighter mint */
    transform: var(--clay-hover-transform);
    box-shadow: 9px 9px 18px rgba(0, 0, 0, 0.12), -9px -9px 18px rgba(255, 255, 255, 0.7);
}


/* Header */
.header {
    background-color: var(--color-background-light);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary-accent);
}

.nav a {
    margin-left: 30px;
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
    padding-bottom: 5px;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* INTRO SECTION: FULLSCREEN CENTERED */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
    background: url('images/image_4.jpg') no-repeat center center/cover;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* SERVICES SECTION: HORIZONTAL CARDS */
.services-carousel-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
    padding-bottom: 20px; /* Space for scrollbar */
}

.services-carousel-wrapper::-webkit-scrollbar {
    height: 10px;
}

.services-carousel-wrapper::-webkit-scrollbar-track {
    background: var(--color-background-light);
    border-radius: 10px;
}

.services-carousel-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-primary-accent);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.services-carousel-wrapper::-webkit-scrollbar-thumb:hover {
    background: #5A54D9;
}


.services-carousel-inner {
    display: flex;
    gap: 40px;
    padding: 10px; /* Give some space for shadow and hover effect */
    min-width: fit-content; /* Ensure items don't wrap */
}

.service-card {
    flex: 0 0 350px; /* Fixed width for horizontal scroll */
    min-width: 300px; /* Minimum width for responsiveness */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    background-color: var(--color-lavender); /* Pastel background */
    color: var(--color-text-dark);
}

.service-card h3 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1.1em;
    line-height: 1.7;
    flex-grow: 1; /* Make paragraphs take available space */
    margin-bottom: 20px;
}

.service-card .card-link {
    font-weight: 600;
    color: var(--color-primary-accent);
    position: relative;
    padding-bottom: 2px;
}

.service-card .card-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-accent);
    transition: width 0.3s ease;
}

.service-card:hover .card-link::after {
    width: 100%;
}

/* PROCESS SECTION: INTERACTIVE DEMO */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: 40px;
}

.process-step {
    text-align: center;
    background-color: var(--color-mint); /* Another pastel background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.process-step .step-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--color-primary-accent);
    margin-bottom: 15px;
    background-color: var(--color-background-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--clay-inset-shadow);
    transition: var(--clay-transition);
}

.process-step:hover .step-number {
    background-color: var(--color-lavender); /* Change on hover for "interactivity" */
    transform: scale(1.05);
}

.process-step h3 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
}

/* SHOWCASE/HIGHLIGHTS: FEATURED WORK */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: 40px;
}

.work-item {
    background-color: var(--color-background-light);
    padding: 0; /* Override clay-card padding for image */
    overflow: hidden; /* Ensure image corners are rounded by card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-item .work-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: var(--clay-border-radius);
    border-top-right-radius: var(--clay-border-radius);
    transition: transform 0.4s ease;
}

.work-item:hover .work-image {
    transform: scale(1.05);
}

.work-item .work-content {
    padding: 25px 30px 30px;
    flex-grow: 1;
}

.work-item h3 {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary-accent);
}

.work-item p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

/* CASE STUDIES: CAROUSEL SLIDER */
.carousel-container {
    position: relative;
    max-width: 900px; /* A bit narrower for focused carousel */
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--clay-border-radius);
    box-shadow: var(--clay-shadow-1);
    background-color: var(--color-background-light);
}

.carousel-inner {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Elastic transition */
}

.carousel-item {
    flex: 0 0 100%; /* Each item takes full width of container */
    padding: 40px;
    text-align: center;
    background-color: var(--color-sky-blue); /* Different pastel for carousel */
    border-radius: var(--clay-border-radius); /* Apply clay-card styles */
    box-shadow: none; /* Remove individual item shadow */
}

.carousel-item h3 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.carousel-item .client-info {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.carousel-item p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary-accent);
    color: var(--color-text-light);
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--clay-shadow-1);
    transition: var(--clay-transition);
}

.carousel-btn:hover {
    background-color: #5A54D9;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--clay-inset-shadow);
}

.dot.active {
    background-color: var(--color-primary-accent);
    transform: scale(1.2);
    box-shadow: var(--clay-shadow-1);
}

/* CALL-TO-ACTION: QUICK CONTACT */
.cta-section {
    background-color: var(--color-peach); /* A vibrant pastel background */
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-background-light);
    padding: 60px 40px;
}

.cta-content h2 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.cta-content p {
    font-size: 1.3em;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #555;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* Footer */
.footer {
    background-color: var(--color-text-dark);
    color: #bbb;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
    border-top-left-radius: var(--clay-border-radius);
    border-top-right-radius: var(--clay-border-radius);
    position: relative;
    z-index: 5;
}

.footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary-accent);
}

.footer-nav a {
    margin-left: 25px;
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-primary-accent);
}

.copyright {
    color: #999;
    margin-top: 20px;
}

/* NEWSLETTER SECTION: POPUP MODAL */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--color-background-light);
    margin: auto;
    padding: 40px;
    border-radius: var(--clay-border-radius);
    max-width: 500px;
    position: relative;
    text-align: center;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--clay-shadow-2);
}

.modal-content h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.modal-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555;
}

.newsletter-mock-input {
    background-color: var(--color-background-light);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: var(--clay-inset-shadow);
    color: #888;
    text-align: left;
    margin-bottom: 20px;
    font-size: 1em;
    cursor: text; /* Indicate it's a text area visually */
}

.mock-subscribe-btn {
    width: 100%;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-primary-accent);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 1; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2em;
    }
    .section-subtitle {
        font-size: 1em;
    }
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .process-grid, .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3-card layout */
    }
    .services-carousel-inner {
        flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
        justify-content: center;
    }
    .service-card {
        flex: 0 0 calc(50% - 20px); /* 2 cards per row on tablets */
        margin-bottom: 20px;
    }
    .carousel-btn {
        padding: 10px 15px;
        font-size: 1em;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .footer .footer-top {
        flex-direction: column;
        gap: 15px;
    }
    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .footer-nav a {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .header .nav {
        display: none; /* Hide navigation on small screens for simplicity */
    }
    .header .container {
        justify-content: center;
    }
    .section-padding {
        padding: 60px 0;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    .process-grid, .work-grid {
        grid-template-columns: 1fr; /* Stack to 1 column on mobile */
    }
    .service-card {
        flex: 0 0 100%; /* 1 card per row on mobile */
    }
    .cta-content h2 {
        font-size: 2.2em;
    }
    .cta-content p {
        font-size: 1em;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .modal-content {
        padding: 30px;
        margin: 20px;
    }
    .modal-content h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .header .logo {
        font-size: 1.5em;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .service-card h3, .process-step h3, .work-item h3 {
        font-size: 1.5em;
    }
    .carousel-btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}
/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced: Smooth scroll CSS fallback */
html { scroll-behavior: smooth; }

/* Enhanced: Missing animation classes from JS */
.scroll-anim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
