/*
 * ========================================
 * ARIA WORDPRESS THEME CSS
 * ========================================
 * A comprehensive stylesheet for WordPress theme
 * with animations, hover effects, and responsive design
 */

/* ========================================
 * 1. GLOBAL STYLES & TYPOGRAPHY
 * ======================================== */

/* Base typography colors using CSS custom properties */
body, h1, h2, h3, h4, h5, h6 {
    color: var(--wp--preset--color--accent-5);
}

/* Prevent horizontal overflow on site blocks */
.wp-site-blocks {
    overflow: hidden;
}

/* ========================================
 * 2. HERO SECTION & DECORATIVE ELEMENTS
 * ======================================== */

/* Hero section container with positioning for decorative shapes */
.hero-section-wrapper {
    position: relative !important;
    overflow: visible;
    z-index: 1;
}

/* Hero image styling with responsive dimensions */
.image-hero {
    width: 100%;
    max-width: 500px;
}

.image-hero img {
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    margin: auto;
    object-fit: contain;
    width: 100%;
    object-position: center;
}

/* Logo list alignment */
.logo-list .wp-block-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container for all decorative background shapes */
.decorative-shapes {
    position: absolute !important;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    top: 0;
    left: 0;
    max-width: 100%;
}

/* Base styling for all decorative shapes */
.shape {
    position: absolute !important;
    border-radius: 50%;
    opacity: 0.15;
}

/* Individual shape positioning and animations */
.shape-1 {
    width: 200px;
    height: 200px;
    top: -10px;
    left: 25%;
    animation: floatX 15s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -150px;
    animation: float 8s ease-in-out infinite;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 70%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.shape-4 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: -150px;
    animation: float 8s ease-in-out infinite;
}

.shape-5 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -10%;
    left: auto;
    animation: float 8s ease-in-out infinite;
}

.shape-6 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 20%;
    left: auto;
    animation: float 8s ease-in-out infinite;
}

.shape-7 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -150px;
    animation: float 8s ease-in-out infinite;
}

/* Floating badge base styling */
.floating-badge {
    gap: 8px;
}

/* ========================================
 * 3. ANIMATIONS & KEYFRAMES
 * ======================================== */

/* Vertical floating animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Combined X and Y axis floating animation */
@keyframes floatX {
    0% {
        transform: translateX(0px) translateY(0px);
    }
    50% {
        transform: translateX(-30px) translateY(-30px);
    }
    100% {
        transform: translateX(0px) translateY(0px);
    }
}

/* Continuous rotation animation */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
 * 4. TEXT EFFECTS & STYLING
 * ======================================== */

/* Gradient text effect using CSS background clipping */
.gradient-text {
    background: var(--wp--preset--gradient--gradient-14);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* ========================================
 * 5. BUTTON EFFECTS & INTERACTIONS
 * ======================================== */

/* Base button shadow effect */
.button-shadow {
    transition: all 0.3s ease-out;
}

.button-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px var(--wp--preset--color--accent);
}

/* Generic hover effect for interactive elements */
.hover-effect:hover {
    background-color: var(--wp--preset--color--accent) !important;
    transform: translateY(-2px);
}

/* Outline button styling */
.is-style-outline .wp-block-button__link {
    transition: all 0.3s ease;
}

.is-style-outline .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px color-mix(in srgb, var(--wp--preset--color--accent-4) 30%, transparent);
}

/* Fill button styling */
.is-style-fill .wp-block-button__link {
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(156, 0, 99, 0.15);
}

.is-style-fill .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(156, 0, 99, 0.2);
}

/* ========================================
 * 6. IMAGE ENHANCEMENTS & EFFECTS
 * ======================================== */

/* Image wrapper for positioning effects */
.image-wrapper {
    position: relative;
}

/* Hero image with floating animation */
.image-hero {
    transition: all 0.3s ease;
    animation: float 10s ease-in-out 1s infinite;
}

.image-hero:hover {
    transform: translateY(-5px);
}

/* ========================================
 * 7. FLOATING BADGES & OVERLAYS
 * ======================================== */

/* Base floating badge styling */
.floating-badge {
    position: absolute !important;
    box-shadow: 0 5px 15px var(--wp--preset--color--accent);
    transition: all 0.3s ease;
}

.floating-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--wp--preset--color--accent);
}

/* Positioning for first floating badge */
.floating-badge:first-of-type {
    top: 20px;
    right: -30px;
    animation: float 10s ease-in-out 2s infinite;
}

/* Rating badge positioning */
.rating-badge {
    bottom: 40px;
    left: -30px;
    animation: float 10s ease-in-out 0s infinite;
}

/* ========================================
 * 8. SOCIAL ICONS & NAVIGATION
 * ======================================== */

/* Social media icons hover effects */
.social-hover-effect .wp-block-social-link {
    transition: all 0.3s ease;
}

.social-hover-effect .wp-block-social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Specialty tags hover effect */
.wp-block-group[style*="border-radius:20px"] {
    transition: all 0.3s ease;
}

.wp-block-group[style*="border-radius:20px"]:hover {
    background-color: rgba(156, 0, 99, 0.08);
    transform: translateY(-2px);
}

/* ========================================
 * 9. SERVICE CARDS & COMPONENTS
 * ======================================== */

/* Enhanced service card styling with theme colors */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid var(--wp--preset--color--accent-2);
    box-shadow: 0 5px 20px rgba(156, 0, 99, 0.05);
    overflow: hidden;
    position: relative;
    height: 100%;
}

/* Top border accent line for service cards */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--wp--preset--gradient--gradient-13);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Service card hover effects */
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--wp--preset--color--accent);
    box-shadow: 0 15px 35px var(--wp--preset--color--accent);
}

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

/* Featured service card special styling */
.service-card.featured-service {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px var(--wp--preset--color--accent);
    z-index: 10;
    overflow: hidden;
}

.service-card.featured-service::before {
    display: none;
}

.service-card.featured-service:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px var(--wp--preset--color--accent);
}

/* Rotating background effect for featured service */
.service-card.featured-service::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.service-card.featured-service:hover::after {
    opacity: 1;
    animation: rotate 18s linear infinite;
}

/* Service icon styling */
.service-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 16px;
    color: var(--wp--preset--color--pink-primary);
    font-weight: bold;
}

/* Service badge styling with theme colors */
.service-badge {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-badge:hover {
    transform: translateY(-2px);
}

.service-badge:not(.featured-badge):hover {
    background-color: var(--wp--preset--color--accent) !important;
}

.featured-badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.featured-badge:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

/* ========================================
 * 10. CTA BOXES & SPECIAL SECTIONS
 * ======================================== */

/* Call-to-action box enhancement */
.cta-box {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--wp--preset--color--accent) 50%, transparent);
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--wp--preset--color--accent) 100%, transparent);
}

/* Rotating background effect for CTA boxes */
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--wp--preset--color--accent) 0%, rgba(252, 242, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.cta-box:hover::before {
    opacity: 1;
    animation: rotate 20s linear infinite;
}

/* Ensure content is above background effects */
.cta-box > * {
    position: relative;
    z-index: 1;
}

/* ========================================
 * 11. GRADIENT SECTIONS & BACKGROUNDS
 * ======================================== */

/* Full-width gradient background sections */
.wp-block-group.alignfull.has-gradient-14-gradient-background {
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--wp--preset--color--accent-4) 50%, transparent) !important;
}

/* Subtle pattern overlay for gradient backgrounds */
.wp-block-group.alignfull.has-gradient-14-gradient-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='white' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
 * 12. TESTIMONIALS & QUOTES
 * ======================================== */

/* Testimonial subtitle styling */
.testimonial-subtitle {
    color: var(--wp--preset--color--accent) !important;
}

/* Enhanced quote styling with decorative quotation marks */
.has-x-large-font-size em {
    position: relative;
    display: inline-block;
}

.has-x-large-font-size em::before,
.has-x-large-font-size em::after {
    font-family: Georgia, serif;
    font-size: 1.5em;
    position: relative;
    top: -0.1em;
}

.has-x-large-font-size em::before {
    content: '"';
    margin-right: 0.1em;
}

.has-x-large-font-size em::after {
    content: '"';
    margin-left: 0.1em;
}

/* ========================================
 * 13. PORTFOLIO SECTION
 * ======================================== */

/* Portfolio section wrapper */
.portfolio-section-wrapper {
    position: relative;
    overflow: hidden;
}

/* Enhanced portfolio card styling */
.portfolio-item {
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--wp--preset--color--accent-4) 8%, transparent);
    background-color: var(--wp--preset--color--base-2);
    border: 1px solid var(--wp--preset--color--accent-2);
    overflow: hidden;
    will-change: transform;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px color-mix(in srgb, var(--wp--preset--color--accent-4) 15%, transparent);
    border-color: var(--wp--preset--color--accent);
}

/* Portfolio image hover effects */
.portfolio-image {
    overflow: hidden;
    margin-bottom: 0 !important;
    height: 280px;
}

.portfolio-image img {
    transition: all 0.6s ease;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}

/* Subtle overlay effect on portfolio items */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, color-mix(in srgb, var(--wp--preset--color--accent-4) 3%, transparent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* View project link styling */
.view-project-link {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    padding-right: 5px;
}

.view-project-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--wp--preset--color--accent-4);
    transition: all 0.3s ease;
}

.portfolio-item:hover .view-project-link {
    transform: translateX(5px);
}

.portfolio-item:hover .view-project-link::after {
    width: 100%;
}

/* Portfolio content link styling */
.portfolio-content .view-project-link a {
    text-decoration: none;
}

/* ========================================
 * 14. PORTFOLIO FILTER BUTTONS
 * ======================================== */

/* Filter buttons container */
.portfolio-filter {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--wp--preset--color--rust-lighter);
}

/* Individual filter button styling */
.filter-button {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Animated underline for filter buttons */
.filter-button::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--wp--preset--gradient--gradient-13);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.filter-button:hover::after,
.filter-button.active::after {
    width: 80%;
}

.filter-button:hover p,
.filter-button.active p {
    color: var(--wp--preset--color--accent-4) !important;
}

/* ========================================
 * 15. CTA SECTION ENHANCEMENTS
 * ======================================== */

/* Enhanced CTA sections with rounded corners */
.wp-block-group.alignwide[style*="border-radius:16px"] {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Rotating background effect for CTA sections */
.wp-block-group.alignwide[style*="border-radius:16px"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--rust-lighter) 50%, transparent) 0%, rgba(252, 242, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.wp-block-group.alignwide[style*="border-radius:16px"]:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

/* Ensure CTA content is above background effects */
.wp-block-group.alignwide[style*="border-radius:16px"] > * {
    position: relative;
    z-index: 1;
}

/* ========================================
 * 16. WORDPRESS THEME COLOR CLASSES
 * ======================================== */

/* Text color utility classes */
.has-purple-primary-color { color: var(--wp--preset--color--purple-primary) !important; }
.has-accent-5-color { color: var(--wp--preset--color--accent-5) !important; }
.has-purple-muted-color { color: var(--wp--preset--color--purple-muted) !important; }
.has-base-2-color { color: var(--wp--preset--color--base-2) !important; }
.has-accent-color { color: var(--wp--preset--color--accent) !important; }
.has-accent-4-color { color: var(--wp--preset--color--accent-4) !important; }
.has-rust-dark-color { color: var(--wp--preset--color--rust-dark) !important; }
.has-rust-muted-color { color: var(--wp--preset--color--rust-muted) !important; }
.has-base-color { color: var(--wp--preset--color--base) !important; }

/* Background color utility classes */
.has-base-background-color { background-color: var(--wp--preset--color--base) !important; }
.has-base-2-background-color { background-color: var(--wp--preset--color--base-2) !important; }
.has-lavender-pale-background-color { background-color: var(--wp--preset--color--base) !important; }

/* Border color utility classes */
.has-accent-border-color { border-color: var(--wp--preset--color--accent) !important; }
.has-purple-primary-border-color { border-color: var(--wp--preset--color--purple-primary) !important; }
.has-rust-lighter-border-color { border-color: var(--wp--preset--color--accent-2) !important; }
.has-accent-4-border-color { border-color: var(--wp--preset--color--accent-4) !important; }

/* Gradient background utility classes */
.has-gradient-13-gradient-background { background: var(--wp--preset--gradient--gradient-13) !important; }
.has-gradient-14-gradient-background { background: var(--wp--preset--gradient--gradient-14) !important; }

/* ========================================
 * 17. ACCESSIBILITY & FOCUS STATES
 * ======================================== */

/* Enhanced focus states for accessibility */
.filter-button:focus-within {
    outline: 2px solid var(--wp--preset--color--accent-4);
    outline-offset: 2px;
    border-radius: 4px;
}

.view-project-link:focus {
    outline: 2px solid var(--wp--preset--color--accent-4);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
 * 18. RESPONSIVE DESIGN & MEDIA QUERIES
 * ======================================== */

/* Mobile and tablet responsive styles */
@media (max-width: 781px) {
    /* Adjust floating badges for mobile */
    .floating-badge {
        position: static;
        margin: 15px 0;
    }
    
    .rating-badge {
        margin-top: -10px;
    }
    
    .content-column {
        margin-bottom: 40px;
    }
    
    /* Portfolio responsive adjustments */
    .portfolio-item {
        max-width: 500px;
        margin: 0 auto 30px;
        height: auto;
    }
    
    .wp-block-columns {
        margin-bottom: 0;
        gap: 30px !important;
    }
    
    .wp-block-column:not(:last-child) {
        margin-bottom: 30px;
    }
    
    /* Service card mobile adjustments */
    .service-card.featured-service {
        transform: translateY(0) scale(1);
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .service-card.featured-service:hover {
        transform: translateY(-8px) scale(1);
    }
}

/* ========================================
 * 19. PERFORMANCE & MOTION PREFERENCES
 * ======================================== */

/* Smooth scrolling enhancement for users who prefer motion */
@media (prefers-reduced-motion: no-preference) {
    .portfolio-item {
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .portfolio-image img {
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    .portfolio-item,
    .portfolio-image img,
    .view-project-link,
    .filter-button,
    .button-shadow,
    .hover-effect {
        transition: none;
    }
    
    .portfolio-item:hover,
    .portfolio-item:hover .portfolio-image img,
    .portfolio-item:hover .view-project-link,
    .button-shadow:hover,
    .hover-effect:hover {
        transform: none;
    }
    
    @keyframes rotate {
        0%, 100% { transform: rotate(0deg); }
    }
}

/* ========================================
 * 20. FALLBACKS & BROWSER COMPATIBILITY
 * ======================================== */

/* Fallback styles for browsers that don't support color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .portfolio-item {
        box-shadow: 0 5px 15px rgba(166, 43, 12, 0.08);
    }
    
    .portfolio-item:hover {
        box-shadow: 0 15px 30px rgba(166, 43, 12, 0.15);
    }
    
    .button-shadow:hover {
        box-shadow: 0 8px 15px rgba(166, 43, 12, 0.3);
    }
    
    .hover-effect:hover {
        background-color: rgba(166, 43, 12, 0.1) !important;
    }
    
    .wp-block-group.alignwide[style*="border-radius:16px"]::before {
        background: radial-gradient(circle, rgba(250, 247, 241, 0.5) 0%, rgba(252, 242, 255, 0) 70%);
    }
}

/* ========================================
 * 21. PRINT STYLES
 * ======================================== */

/* Print-friendly styles */
@media print {
    .portfolio-section-wrapper {
        background: white !important;
        box-shadow: none !important;
    }
    
    .portfolio-item {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .portfolio-image {
        height: auto !important;
    }
    
    .wp-block-buttons {
        display: none;
    }
}