/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed navbar height */
}

/* Accessibility: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 100000;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Enhanced Focus Indicators */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Remove default focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Keyboard navigation focus styles */
.navbar a:focus-visible,
.nav-links a:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 141, 128, 0.4);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', Times, serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

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

.nav-logo h2 {
    color: var(--accent-primary);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo .logo-image {
    height: auto;
    max-height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-primary);
}

/* Social media links in navigation */
.social-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: 2px solid transparent;
}

.social-link .social-icon {
    stroke: white !important;
    fill: white !important;
}

.social-link .social-icon path {
    stroke: white !important;
    fill: white !important;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 141, 128, 0.35);
    background: transparent;
    border-color: var(--accent-primary);
}

.social-link:hover .social-icon {
    stroke: var(--accent-primary) !important;
    fill: var(--accent-primary) !important;
}

.social-link:hover .social-icon path {
    stroke: var(--accent-primary) !important;
    fill: var(--accent-primary) !important;
}

.social-icon {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-dark); /* Dark accent underline */
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white !important;
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 141, 128, 0.35);
}

.cta-button::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    margin: -0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

[data-theme="dark"] .hamburger span {
    background: var(--text-primary);
}

/* Hero Section - WZ Studio Inspired */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 70px; /* Account for fixed navbar */
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    z-index: 1;
    overflow: hidden;
    background-color: #2d2d2d;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.2);
    transform-origin: center center;
    will-change: transform, opacity;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-text-container {
    max-width: 600px;
    color: white;
    animation: fadeInUp 1s ease;
    position: relative;
}

.hero-text-container::before {
    content: '';
    position: absolute;
    top: -3rem;
    left: -3rem;
    right: -3rem;
    bottom: -3rem;
    background: radial-gradient(ellipse at center left, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 141, 128, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.highlight {
    color: var(--accent-primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: left;
}

.stat-number-container {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
    line-height: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', Times, serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stat-symbol {
    color: var(--accent-primary);
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', Times, serif;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    display: block;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: 2px solid var(--accent-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-gallery {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: none;
    gap: 1rem;
    z-index: 3;
}

.gallery-item {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.gallery-item:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--accent-primary);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

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

.portfolio-item:nth-child(n+9) {
    display: none;
}

.portfolio-item {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 
                0 0 20px rgba(168, 141, 128, 0.3);
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary)) border-box;
}

.portfolio-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 2;
    transition: border-color 0.3s ease;
}

.portfolio-item:hover .portfolio-image::after {
    border-color: rgba(255, 255, 255, 1);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    aspect-ratio: 4/3; /* Prevents layout shift */
}

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

.portfolio-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    color: white;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
    color: white;
    font-size: 1.3rem;
}

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

.view-project {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none; /* Card is clickable, button is visual only */
}

.portfolio-item:hover .view-project {
    background: white;
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Oferta Section */
.oferta {
    padding: 100px 0;
    background: var(--bg-accent);
}

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

.service-card {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    transform: scale(1.02);
}

.service-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: inherit;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: white;
}

.process-section {
    text-align: center;
}

.process-section h3 {
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* About Section */
.about {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.about-text h3 {
    color: var(--accent-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.about-pillars {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.about-pillars li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.about-pillars li strong {
    color: var(--accent-primary);
}

.about-cta {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-photo {
    width: 350px;
    height: 450px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.about-photo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 70px rgba(168, 141, 128, 0.3);
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    border: 2px solid var(--border-light);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--bg-accent);
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.testimonials-wrapper {
    flex: 1;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
    padding: 10px; /* Padding to prevent border clipping */
}

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

.testimonial-card {
    background: transparent; /* No background - just show image */
    border-radius: 0; /* No rounded corners */
    box-shadow: none; /* No shadow */
    transition: all 0.3s ease;
    flex: 0 0 calc(50% - 1rem); /* Show 2 cards at a time */
    min-width: calc(50% - 1rem);
    overflow: visible; /* Allow image to show fully */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    /* No shadow - just lift effect */
}

.testimonial-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* No zoom - images updated */
    transform: scale(1.0);
}

/* Carousel Buttons */
.carousel-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.carousel-btn:hover svg {
    stroke: white;
}

.carousel-btn svg {
    stroke: var(--text-primary);
    transition: stroke 0.3s ease;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.carousel-btn:disabled:hover {
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

.carousel-btn:disabled:hover svg {
    stroke: var(--text-primary);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-dark); /* Dark accent for dots */
    opacity: 0.3;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--accent-dark);
    opacity: 0.6;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--accent-dark); /* Active dot in dark accent */
    opacity: 1;
    width: 32px;
    border-radius: 6px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item h4 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.25rem;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 141, 128, 0.3);
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social .social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-social .social-link:hover {
    background: rgba(168, 141, 128, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 141, 128, 0.2);
}

.footer-social .social-icon {
    width: 22px;
    height: 22px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-logo .logo-image {
        max-height: 30px;
        max-width: 200px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow-light);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-text-container {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 0 0 calc(33.333% - 1rem);
        min-width: 100px;
    }
    
    .stat-number-container {
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-symbol {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-gallery {
        right: 20px;
        bottom: 20px;
    }

    .gallery-item {
        width: 50px;
        height: 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .portfolio-image {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card.featured {
        transform: none;
    }
    
    /* Ensure oferta section is fully visible on mobile */
    .oferta {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 1;
        padding: 60px 0 !important;
    }
    
    .oferta .container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .oferta .section-header,
    .oferta .packages-grid,
    .oferta .closing-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .about-photo {
        width: 280px;
        height: 360px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials Carousel Mobile */
    .testimonials-carousel {
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .testimonial-image {
        height: 300px;
    }
    
    .testimonial-image img {
        transform: scale(1.0); /* No zoom on mobile - images updated */
    }
}

@media (max-width: 480px) {
    .nav-logo .logo-image {
        max-height: 25px;
        max-width: 180px;
    }

    .loader-logo {
        max-height: 70px;
        max-width: 70px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .section-header,
    .services,
    .portfolio,
    .about,
    .testimonials,
    .contact {
        padding: 60px 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-number-container {
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        max-width: 280px;
    }

    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .portfolio-image {
        height: 350px;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .hero-gallery {
        display: none;
    }
    
    /* Lightbox adjustments for very small screens */
    .lightbox-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .lightbox-image {
        max-height: 45vh;
    }
    
    .lightbox-info {
        max-height: 45vh;
        padding: 0.75rem;
    }
    
    .lightbox-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .lightbox-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .lightbox-nav {
        width: 35px;
        height: 35px;
    }
}

/* New Styles for Updated Content */

/* Why Choose Us Section */
.why-choose-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-accent) 100%);
}

.why-choose-section .section-header h2 {
    color: var(--text-primary);
}

.why-choose-section .section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 141, 128, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 141, 128, 0.05) 0%, rgba(168, 141, 128, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(168, 141, 128, 0.25);
    border-color: rgba(168, 141, 128, 0.4);
}

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

.benefit-icon {
    width: 70px;
    height: 70px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 141, 128, 0.1);
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.benefit-icon svg {
    width: 35px;
    height: 35px;
}

.benefit-item:hover .benefit-icon {
    background: rgba(168, 141, 128, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.benefit-item h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* Service Package Section */
.service-package {
    margin: 4rem 0;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-light);
}

.service-package h3 {
    text-align: center;
    color: var(--accent-primary);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.service-package h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.package-column h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-primary);
}

.package-features {
    list-style: none;
    padding: 0;
}

.package-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li strong {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Detailed Process Section */
.detailed-process {
    margin-top: 3rem;
}

.process-stage {
    margin-bottom: 3rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.process-stage:hover {
    transform: translateY(-5px);
}

.stage-header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stage-number {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.stage-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.stage-content {
    padding: 2rem;
}

.stage-steps {
    display: grid;
    gap: 2rem;
}

.stage-step {
    padding: 1.5rem;
    background: var(--bg-accent);
    border-radius: 15px;
    border-left: 4px solid var(--accent-primary);
}

.stage-step h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.stage-step p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.stage-step ul {
    list-style: none;
    padding-left: 0;
}

.stage-step ul li {
    color: var(--text-secondary);
    padding: 0.25rem 0;
    line-height: 1.5;
}

.technical-drawings ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.technical-drawings li {
    background: var(--bg-accent);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-primary);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Section Updates */
.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .benefit-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .benefit-item h4 {
        font-size: 1.1rem;
    }
    
    .benefit-item p {
        font-size: 0.9rem;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item,
    .package-column {
        min-width: auto;
    }
    
    .stage-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stage-header h4 {
        font-size: 1.2rem;
    }
    
    .technical-drawings ul {
        grid-template-columns: 1fr;
    }
    
    .why-choose-us,
    .service-package {
        padding: 2rem 1rem;
    }

        [data-theme="dark"] .mobile-theme-toggle {
        background: var(--border-light);
    }

    [data-theme="dark"] .mobile-theme-toggle .theme-toggle-icon {
        background: var(--bg-accent);
    }
}

/* Hero image zoom animation - smooth continuous zoom */
.hero-bg-img.zoom-active {
    animation: heroZoom 6s linear forwards;
}

@keyframes heroZoom {
    0% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.0);
    }
}

/* Loading States & Skeleton Screens */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--accent-primary);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(168, 141, 128, 0.3);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1.5rem auto 0;
}

.loader-text {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.loader-logo {
    height: auto;
    max-height: 100px;
    max-width: 100px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

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

/* Skeleton Loading for Portfolio */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.portfolio-skeleton {
    height: 500px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.long {
    width: 80%;
}

@keyframes loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Portfolio Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 60vh;
    object-fit: contain;
    flex-shrink: 0;
}

.lightbox-info {
    padding: 1.5rem;
    background: white;
    overflow-y: auto;
    max-height: 30vh;
    flex-shrink: 1;
    flex-grow: 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.lightbox-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.lightbox-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
    text-align: justify;
    position: relative;
}

.lightbox-description p {
    margin-bottom: 1rem;
}

.lightbox-description > *:last-child {
    margin-bottom: 0;
    padding-bottom: 0.5rem;
}

/* Custom scrollbar for lightbox info section */
.lightbox-info::-webkit-scrollbar {
    width: 8px;
}

.lightbox-info::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.lightbox-info::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 4px;
}

.lightbox-info::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Firefox scrollbar */
.lightbox-info {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dark) rgba(0, 0, 0, 0.1);
}

.lightbox-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lightbox-tag {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Click-to-Action Enhancements */
.contact-item {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid transparent;
}

.contact-item:hover {
    background: rgba(168, 141, 128, 0.1);
    border-color: rgba(168, 141, 128, 0.3);
    transform: translateY(-2px);
}

.contact-item.clickable {
    position: relative;
}

.contact-item.clickable::after {
    content: '📱';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item.clickable:hover::after {
    opacity: 1;
}

/* Form Progress Indicator */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
}

.form-progress-line {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.5s ease;
    z-index: 2;
}

.form-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

.form-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.form-step.active .form-step-circle {
    background: var(--accent-primary);
    color: white;
}

.form-step.completed .form-step-circle {
    background: #27ae60;
    color: white;
}

.form-step.completed .form-step-circle::after {
    content: '✓';
    font-size: 0.8rem;
}

.form-step-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 80px;
}

.form-step.active .form-step-label {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Enhanced Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-left: 4px solid #1e8449;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-left: 4px solid #a93226;
}

.notification.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-left: 4px solid #1f618d;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    opacity: 0.9;
}

.notification-message {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Smooth Transitions for Loading States */
.portfolio-item {
    transition: all 0.3s ease, opacity 0.5s ease;
}

.portfolio-item.loading {
    pointer-events: none;
}

.form-group {
    position: relative;
    transition: all 0.3s ease;
}

.form-group.completed {
    transform: scale(0.98);
}

.form-group.completed::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Enhanced Hover Effects */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

/* Dark Mode Styles - Enhanced */
:root {
    /* New Color Palette */
    --color-light-beige: #ede7e5;
    --color-dark-beige: #bfb6ae;
    --color-dark-rose: #bda39e;
    --color-brownish: #a88d80;
    --color-text-dark: #1c2726;
    --color-text-grey: #544f4d;
    --accent-dark: #544f4d;
    
    /* Light mode colors */
    --bg-primary: #ede7e5;
    --bg-secondary: #ffffff;
    --bg-accent: #f5f1ef;
    --text-primary: #1c2726;
    --text-secondary: #544f4d;
    --text-muted: #8a8583;
    --border-light: #d4ccc7;
    --border-medium: #bfb6ae;
    --accent-primary: #a88d80;
    --accent-secondary: #bda39e;
    --accent-tertiary: #bfb6ae;
    --accent-light: rgba(168, 141, 128, 0.15);
    --shadow-light: rgba(28, 39, 38, 0.08);
    --shadow-medium: rgba(28, 39, 38, 0.12);
    --overlay-light: rgba(28, 39, 38, 0.6);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --hero-text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    --contact-bg: linear-gradient(135deg, #544f4d, #3a3735);
}

[data-theme="dark"] {
    /* Dark mode colors - adapted to new palette */
    --bg-primary: #1c2726;
    --bg-secondary: #2a3432;
    --bg-accent: #364140;
    --text-primary: #ede7e5;
    --text-secondary: #bfb6ae;
    --text-muted: #8a8583;
    --border-light: #4a514f;
    --border-medium: #3a3f3e;
    --accent-primary: #bda39e;
    --accent-secondary: #a88d80;
    --accent-tertiary: #bfb6ae;
    --accent-light: rgba(189, 163, 158, 0.15);
    --shadow-light: rgba(0, 0, 0, 0.4);
    --shadow-medium: rgba(0, 0, 0, 0.6);
    --overlay-light: rgba(0, 0, 0, 0.8);
    --navbar-bg: #1c2726;
    --hero-text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
    --contact-bg: linear-gradient(135deg, #1c2726, #2a3432);
}

/* Apply CSS Variables - Enhanced */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.nav-logo h2 {
    color: var(--accent-primary) !important;
}

.nav-menu a {
    color: var(--text-primary);
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
    color: white !important;
}

/* Hero Section */
.hero-title {
    color: white !important;
    text-shadow: var(--hero-text-shadow);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: var(--hero-text-shadow);
}

.highlight {
    color: var(--accent-primary) !important;
}

.stat-number {
    color: var(--accent-primary) !important;
    text-shadow: var(--hero-text-shadow);
}

.stat-symbol {
    color: var(--accent-primary) !important;
}

/* Temporary: Hide prices until business plan is set up */
.package-price,
.price-row {
    display: none !important;
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio-item {
    background: var(--bg-secondary);
    border: 3px solid transparent;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.portfolio-item:hover {
    box-shadow: 0 15px 40px var(--shadow-medium),
                0 0 20px rgba(168, 141, 128, 0.3);
    transform: translateY(-5px);
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary)) border-box;
}

.filter-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Services Section */
.oferta {
    background: var(--bg-accent);
}

.oferta .section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text {
    margin-top: 2rem;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.intro-text p {
    margin-bottom: 1.5rem;
}

.intro-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Packages Grid - Improved Layout */
.packages-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch; /* Ensure equal height */
}

/* Featured package appears first */
.package-card.featured {
    order: -1;
    margin-bottom: 1rem;
}

/* Staggered layout for medium screens */
@media (min-width: 900px) and (max-width: 1399px) {
    .packages-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        max-width: 800px;
        grid-template-areas:
            "featured featured"
            "plan vision";
    }

    .package-card.featured {
        grid-area: featured;
        order: 0;
        margin-bottom: 0;
        max-width: 500px;
        justify-self: center;
    }
}

/* Side-by-side layout for large screens */
@media (min-width: 1400px) {
    .packages-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1300px;
        align-items: start;
    }

    .package-card.featured {
        order: 0;
        margin-bottom: 0;
        transform: scale(1.03);
        z-index: 10;
        position: relative;
    }

    .package-card.featured:hover {
        transform: scale(1.03) translateY(-10px);
    }
}

.package-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%; /* Ensure equal height */
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px var(--shadow-medium);
    border-color: var(--accent-primary);
}

.package-card.featured {
    border: 3px solid var(--accent-dark);
    box-shadow: 0 20px 60px rgba(84, 79, 77, 0.4), 
                0 0 0 3px rgba(84, 79, 77, 0.1);
    position: relative;
    overflow: visible;
    transform: scale(1.02);
}

.package-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 25px 70px rgba(84, 79, 77, 0.5),
                0 0 0 3px rgba(84, 79, 77, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #544f4d, #3d3a38);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(84, 79, 77, 0.6);
    z-index: 20;
    white-space: nowrap;
    border: 2px solid white;
}

.package-header {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
    margin: -2px -2px 0 -2px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.package-card.featured .package-header {
    background: linear-gradient(135deg, #5a5451, #4a4644);
    box-shadow: 0 4px 15px rgba(84, 79, 77, 0.4);
}

.package-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-tagline {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
    font-style: italic;
}

.package-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-bottom {
    margin-top: auto;
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ideal-for,
.what-you-get,
.main-benefit {
    margin-bottom: 1.25rem;
}

.ideal-for h4,
.what-you-get h4,
.main-benefit h4 {
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ideal-for ul {
    list-style: none;
    padding-left: 0;
}

.ideal-for li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.2rem;
}

.ideal-for li:last-child {
    border-bottom: none;
}

.ideal-for li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.what-you-get p,
.main-benefit p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.package-price {
    display: none; /* Hide prices */
}

.price {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.price strong {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.package-btn {
    display: flex;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-primary);
    margin: 0;
    line-height: 1.4;
    min-height: 48px;
    align-items: center;
    justify-content: center;
}

.package-btn:hover {
    background: transparent;
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 141, 128, 0.3);
}

.featured-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    box-shadow: 0 5px 20px rgba(168, 141, 128, 0.3);
}

.featured-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 141, 128, 0.4);
}

/* Featured package buttons styling - now matches regular packages */
.package-card.featured .package-btn {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.package-card.featured .package-btn:hover {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 6px 20px rgba(168, 141, 128, 0.3);
}

.package-card.featured .compare-btn {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.package-card.featured .compare-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Dark theme: Make featured package buttons match regular package buttons */
[data-theme="dark"] .package-card.featured .package-btn {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

[data-theme="dark"] .package-card.featured .package-btn:hover {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 6px 20px rgba(168, 141, 128, 0.3);
}

[data-theme="dark"] .package-card.featured .compare-btn {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .package-card.featured .compare-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Closing Section */
.closing-section {
    background: var(--bg-secondary);
    padding: 4rem 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px var(--shadow-light);
}

.closing-section h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.closing-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.closing-content strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.final-cta-btn {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(168, 141, 128, 0.3);
}

.final-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(168, 141, 128, 0.4);
    color: white;
}

/* Enhanced Visual Improvements - Remove duplicate */

/* Remove number badges from first two packages - only featured package gets star */
.package-card::after {
    display: none;
}

.package-card.featured::after {
    display: flex;
    background: linear-gradient(135deg, #544f4d, #3d3a38);
    content: '✓';
    font-size: 1.2rem;
    width: 42px;
    height: 42px;
    box-shadow: 0 6px 20px rgba(84, 79, 77, 0.7);
    position: absolute;
    top: -12px;
    right: -12px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 15;
    border: 3px solid white;
    color: white;
}

/* Responsive Design for Oferta */
@media (max-width: 1199px) {
    .package-card.featured {
        transform: none !important;
        margin-bottom: 1rem;
    }

    .package-card.featured:hover {
        transform: scale(1.02) translateY(-10px) !important;
    }
}

@media (max-width: 768px) {
    .packages-grid {
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
    }
    
    .package-card {
        display: flex;
        visibility: visible;
        opacity: 1;
        width: 100%;
        max-width: 100%;
    }

    .package-content {
        padding: 2rem 1.5rem;
    }
    
    /* Ensure text is visible */
    .oferta h2,
    .oferta h3,
    .oferta p,
    .oferta li {
        color: var(--text-primary);
        opacity: 1;
    }

    .closing-section {
        padding: 3rem 2rem;
        margin: 0 10px;
    }

    .popular-badge {
        top: -8px;
        padding: 0.4rem 1.2rem;
        font-size: 0.7rem;
    }

    .package-card::after {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .package-card.featured::after {
        width: 34px;
        height: 34px;
    }
}

/* Additional Visual Enhancements */
.oferta {
    position: relative;
    overflow-x: hidden;
}

/* Add subtle background pattern */
.oferta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(168, 141, 128, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(168, 141, 128, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Package card hover improvements */
.package-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.package-card:hover {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Better spacing for package elements */
.package-content > * + * {
    margin-top: 1.5rem;
}

/* Enhanced price styling */
.package-price {
    position: relative;
}

.package-price::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(168, 141, 128, 0.1), transparent);
    border-radius: 20px;
    z-index: -1;
}

@media (max-width: 480px) {
    .package-header {
        padding: 1.5rem;
    }

    .package-header h3 {
        font-size: 1.5rem;
    }

    .package-content {
        padding: 1.5rem 1rem;
    }

    .closing-section {
        padding: 2rem 1rem;
    }

    .closing-section h2 {
        font-size: 1.8rem;
    }

    .final-cta-btn {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 20px var(--shadow-light);
}

.service-card:hover {
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: var(--accent-primary);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}

/* Why Choose Section */
.why-choose-section {
    background: var(--bg-accent);
}

.benefit-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.benefit-item:hover {
    box-shadow: 0 25px 60px var(--shadow-medium);
    border-color: var(--accent-primary);
}

.benefit-icon {
    color: var(--accent-primary);
    background: var(--accent-light);
}

.benefit-item h4 {
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
}

/* Service Package */
.service-package {
    background: var(--bg-secondary);
    box-shadow: 0 20px 60px var(--shadow-light);
}

.service-package h3 {
    color: var(--accent-primary);
}

.package-column h4 {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-primary);
}

.package-features li {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.process-stage {
    background: var(--bg-secondary);
    box-shadow: 0 15px 35px var(--shadow-light);
}

.stage-header {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.stage-step {
    background: var(--bg-accent);
    border-left: 4px solid var(--accent-primary);
}

.stage-step h5 {
    color: var(--text-primary);
}

.stage-step p {
    color: var(--text-secondary);
}

.technical-drawings li {
    background: var(--bg-accent);
    border-left: 3px solid var(--accent-primary);
    color: var(--text-secondary);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-text h2 {
    color: var(--text-primary);
}

.about-text h3 {
    color: var(--accent-primary);
}

.about-text p {
    color: var(--text-secondary);
}

.about-pillars li {
    color: var(--text-secondary);
}

.about-pillars li strong {
    color: var(--accent-primary);
}

.about-cta {
    color: var(--text-primary);
}

/* Testimonials */
.testimonials {
    background: var(--bg-accent);
}

/* Force light background in testimonials section for dark theme */
[data-theme="dark"] .testimonials {
    background: #f5f5f5; /* Light background to ensure text visibility on transparent images */
}

[data-theme="dark"] .testimonials .section-header h2,
[data-theme="dark"] .testimonials .section-header p {
    color: #1c2726; /* Dark text color for contrast */
}

[data-theme="dark"] .testimonial-card {
    background: transparent;
}

[data-theme="dark"] .testimonial-image {
    background: #ffffff; /* White background for images with transparency */
}

[data-theme="dark"] .carousel-btn {
    background: #ffffff;
    border-color: #d0d0d0;
}

[data-theme="dark"] .carousel-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .carousel-btn svg {
    stroke: #1c2726;
}

[data-theme="dark"] .carousel-btn:hover svg {
    stroke: white;
}

[data-theme="dark"] .carousel-dot {
    background: #1c2726;
}

[data-theme="dark"] .carousel-dot:hover {
    background: var(--accent-primary);
}

[data-theme="dark"] .carousel-dot.active {
    background: var(--accent-primary);
}

.testimonial-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Testimonial card hover - no shadow effect */

.testimonial-image {
    background: var(--bg-accent);
}

.carousel-btn {
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

.carousel-btn:hover {
    background: var(--accent-primary);
}

.carousel-btn svg {
    stroke: var(--text-primary);
}

.carousel-dot {
    background: var(--border-light);
}

.carousel-dot:hover {
    background: var(--accent-secondary);
}

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

/* Contact Section */
.contact {
    background: var(--contact-bg);
    color: white;
}

.contact-info h2 {
    color: white;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-item h4 {
    color: var(--accent-primary);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-item:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
}

.contact-form-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.contact-form h3 {
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group label {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    color: var(--accent-primary);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.form-note {
    color: var(--text-secondary);
}

/* Form Progress */
.form-progress::before {
    background: var(--border-light);
}

.form-progress-line {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.form-step-circle {
    background: var(--border-light);
    color: var(--text-muted);
}

.form-step.active .form-step-circle {
    background: var(--accent-primary);
    color: white;
}

.form-step-label {
    color: var(--text-muted);
}

.form-step.active .form-step-label {
    color: var(--accent-primary);
}

/* Lightbox */
.lightbox-overlay {
    background: var(--overlay-light);
}

.lightbox-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

.lightbox-info {
    background: var(--bg-secondary);
}

.lightbox-title {
    color: var(--text-primary);
}

.lightbox-description {
    color: var(--text-secondary);
}

/* Dark mode scrollbar for lightbox info */
[data-theme="dark"] .lightbox-info::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lightbox-info::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
}

.lightbox-tag {
    background: var(--accent-primary);
    color: white;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    color: var(--text-primary);
}

.footer-brand h3 {
    color: var(--accent-primary);
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-column h4 {
    color: var(--accent-primary);
}

.footer-column a {
    color: var(--text-secondary);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
}

/* Section Headers */
.section-title {
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
}

/* Page Loader */
.page-loader {
    background: var(--bg-primary);
}

.loader-content {
    color: var(--accent-primary);
}

.loader-spinner {
    border: 3px solid var(--accent-light);
    border-top: 3px solid var(--accent-primary);
}

/* Dark Mode Toggle - Professional & Subtle */
.theme-toggle,
.mobile-theme-toggle {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
    border: 1.5px solid transparent;
    opacity: 0.7;
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    tap-highlight-color: transparent;
    outline: none;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.theme-toggle:hover,
.mobile-theme-toggle:hover {
    background: var(--accent-light);
    border-color: var(--border-light);
    opacity: 1;
    border-radius: 50%;
}

.theme-toggle:active,
.mobile-theme-toggle:active {
    background: var(--accent-light);
    border-radius: 50%;
    transform: scale(0.95);
}

.theme-toggle:focus-visible,
.mobile-theme-toggle:focus-visible {
    outline: 2px solid var(--accent-primary) !important;
    outline-offset: 2px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 4px rgba(168, 141, 128, 0.2);
}

.theme-toggle:focus,
.mobile-theme-toggle:focus {
    outline: none;
    border-radius: 50%;
}

/* Override global focus styles for theme toggle */
.theme-toggle:focus-visible,
.mobile-theme-toggle:focus-visible,
.theme-toggle:focus,
.mobile-theme-toggle:focus,
.theme-toggle:active,
.mobile-theme-toggle:active {
    border-radius: 50% !important;
}

.theme-toggle-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.sun-icon,
.moon-icon {
    position: absolute;
    font-size: 18px;
    transition: all 0.3s ease;
    filter: grayscale(0.3);
    -webkit-tap-highlight-color: transparent;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.moon-icon {
    opacity: 0;
    transform: scale(0.5) rotate(180deg);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.mobile-theme-toggle {
    display: none;
}

/* PWA Install Button */
.pwa-install {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.pwa-install-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(168, 141, 128, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 141, 128, 0.4);
}

.pwa-install-btn:active {
    transform: translateY(0);
}

/* WebP Support Detection */
.webp-support .jpg-fallback {
    display: none;
}

.no-webp .webp-image {
    display: none;
}

/* Modern scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Enhanced Dark Mode Specific Styles */
[data-theme="dark"] {
    /* Improved text readability */
    --text-contrast-high: #ffffff;
    --text-contrast-medium: #e6edf3;
    --text-contrast-low: #7d8590;
}

/* Enhanced button styles for dark mode */
[data-theme="dark"] .btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    font-weight: 600;
}

[data-theme="dark"] .btn-primary:hover {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-light);
}

[data-theme="dark"] .btn-secondary {
    background: transparent;
    color: var(--text-contrast-high);
    border-color: var(--text-contrast-high);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--text-contrast-high);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Enhanced navigation for dark mode */
[data-theme="dark"] .navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-menu a:hover::after {
    background: var(--accent-primary);
}

/* Enhanced social links for dark mode */
[data-theme="dark"] .social-link:hover {
    box-shadow: 0 8px 25px var(--accent-light);
}

/* Enhanced portfolio hover effects */
[data-theme="dark"] .portfolio-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(189, 163, 158, 0.4);
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary)) border-box;
}

[data-theme="dark"] .portfolio-image::after {
    border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .portfolio-item:hover .portfolio-image::after {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Portfolio button text - dark in dark theme for better contrast */
[data-theme="dark"] .portfolio-item:hover .view-project {
    background: white;
    color: var(--bg-primary); /* Dark text color for better contrast */
}

/* Enhanced form styling for dark mode */
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

[data-theme="dark"] .form-group input:hover,
[data-theme="dark"] .form-group select:hover,
[data-theme="dark"] .form-group textarea:hover {
    border-color: var(--accent-secondary);
    background: var(--bg-accent);
}

/* Enhanced notification styles for dark mode */
[data-theme="dark"] .notification {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .notification.success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.9), rgba(46, 204, 113, 0.9));
}

[data-theme="dark"] .notification.error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.9));
}

[data-theme="dark"] .notification.info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
}

/* Enhanced lightbox for dark mode */
[data-theme="dark"] .lightbox-overlay {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .lightbox-close,
[data-theme="dark"] .lightbox-nav {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .lightbox-close:hover,
[data-theme="dark"] .lightbox-nav:hover {
    background: var(--bg-accent);
    border-color: var(--accent-primary);
}

/* Enhanced service cards for dark mode */
[data-theme="dark"] .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Enhanced testimonial cards for dark mode */
[data-theme="dark"] .testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Enhanced process stages for dark mode */
[data-theme="dark"] .process-stage:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Enhanced gallery items for dark mode */
[data-theme="dark"] .gallery-item {
    border-color: var(--border-light);
}

[data-theme="dark"] .gallery-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px var(--accent-light);
}

/* Enhanced contact items for dark mode */
[data-theme="dark"] .contact-item.clickable::after {
    opacity: 0.8;
}

/* Enhanced footer social links for dark mode */
[data-theme="dark"] .footer-social .social-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .footer-social .social-link:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px var(--accent-light);
}

/* Transition improvements for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure proper contrast for all interactive elements */
[data-theme="dark"] button,
[data-theme="dark"] .btn,
[data-theme="dark"] a {
    transition: all 0.3s ease;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-contrast-high);
}

/* Enhanced PWA install button for dark mode */
[data-theme="dark"] .pwa-install-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 5px 20px var(--accent-light);
}

[data-theme="dark"] .pwa-install-btn:hover {
    box-shadow: 0 8px 30px rgba(230, 204, 153, 0.4);
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .theme-toggle {
        display: none;
    }

    .mobile-theme-toggle {
        display: flex;
        order: 3;
        margin-left: 0;
        margin-right: 1rem;
    }

    .pwa-install {
        bottom: 10px;
        right: 10px;
    }

    .pwa-install-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 0 10px;
    }
    
    .lightbox-image {
        max-height: 50vh;
    }
    
    .lightbox-info {
        max-height: 40vh;
        padding: 1rem;
    }
    
    .lightbox-title {
        font-size: 1.2rem;
    }
    
    .lightbox-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .form-progress {
        margin-bottom: 1.5rem;
    }

    .form-step-label {
        font-size: 0.7rem;
        max-width: 60px;
    }

    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        min-width: auto;
    }

    .notification.show {
        transform: translateY(0);
    }
}


/* Package Actions & Compare Modal */
.package-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compare-btn {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.compare-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(168, 141, 128, 0.3);
}

.compare-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.compare-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.compare-modal-content {
    background: var(--bg-primary);
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

.compare-header {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.compare-header h2 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.compare-table-container {
    overflow-x: auto;
    max-height: 60vh;
    overflow-y: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table th {
    background: var(--bg-secondary);
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.element-col {
    width: 35%;
    text-align: left !important;
}

.compare-table th.element-col {
    background: var(--accent-light) !important;
    color: var(--accent-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.package-col {
    width: 21.66%;
    min-width: 180px;
}

.subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    font-style: italic;
}

/* Klarowny package styling */
.compare-table th.klarowny {
    background: rgba(168, 141, 128, 0.2) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compare-table td.klarowny {
    background: rgba(168, 141, 128, 0.1);
}

/* Wizja package styling */
.compare-table th.wizja {
    background: rgba(168, 141, 128, 0.25) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compare-table td.wizja {
    background: rgba(168, 141, 128, 0.15);
}

/* Realizacja featured package styling */
.compare-table th.realizacja.featured {
    background: linear-gradient(135deg, rgba(168, 141, 128, 0.3), rgba(168, 141, 128, 0.4)) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.compare-table th.realizacja.featured::after {
    content: '⭐';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1rem;
    opacity: 0.7;
}

.compare-table td.realizacja.featured {
    background: linear-gradient(135deg, rgba(168, 141, 128, 0.2), rgba(168, 141, 128, 0.3));
}

.compare-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    vertical-align: middle;
}

.element-name {
    text-align: left !important;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(168, 141, 128, 0.05);
}

.category-header td {
    background: var(--accent-primary) !important;
    color: white !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    padding: 1rem !important;
}

.check {
    color: #27ae60;
    font-size: 1.2rem;
    font-weight: bold;
}

.no-check {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.6;
}

.featured-cell {
    background: rgba(168, 141, 128, 0.1);
}

.goal-row td {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.price-row {
    background: rgba(168, 141, 128, 0.05);
}

.price-cell {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.compare-footer {
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
}

.compare-cta-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(168, 141, 128, 0.3);
}

.compare-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(168, 141, 128, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .compare-modal-content {
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .compare-header {
        padding: 1.5rem 1rem;
    }
    
    .compare-header h2 {
        font-size: 1.5rem;
    }
    
    .compare-table {
        font-size: 0.75rem;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .element-col {
        width: 35%;
        min-width: 120px;
    }
    
    .package-col {
        width: 21.66%;
        min-width: 100px;
    }
    
    .subtitle {
        display: none;
    }
    
    .compare-footer {
        padding: 1.5rem 1rem;
    }
    
    .compare-cta-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}


/* Fix sticky headers background - automatic column styling */
.compare-table tr:not(.category-header) td:nth-child(2):not(.element-name) {
    background: rgba(168, 141, 128, 0.1);
}

.compare-table tr:not(.category-header) td:nth-child(3):not(.element-name) {
    background: rgba(168, 141, 128, 0.15);
}

.compare-table tr:not(.category-header) td:nth-child(4):not(.element-name) {
    background: linear-gradient(135deg, rgba(168, 141, 128, 0.2), rgba(168, 141, 128, 0.3));
}

/* Ensure sticky headers always have solid backgrounds */
.compare-table th {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* Force sticky positioning for featured header */
.compare-table th.realizacja.featured {
    position: sticky !important;
}


/* Fix text color for first column header to match other headers */
.compare-table th.element-col {
    color: var(--text-primary) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    display: flex;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   FORM VALIDATION STYLES
   ============================================ */

/* Error Message Styling */
.error-message {
    display: block;
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error-message:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

/* Form Status Messages */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
}

.form-status.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Input Validation States */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #d32f2f;
    background-color: rgba(211, 47, 47, 0.05);
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus,
.form-group select.invalid:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: #4caf50;
    background-color: rgba(76, 175, 80, 0.05);
}

.form-group input.valid:focus,
.form-group textarea.valid:focus,
.form-group select.valid:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Validation Icons (optional checkmark/x) */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23d32f2f" d="M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-group.has-success input,
.form-group.has-success textarea {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%234caf50" d="M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm-2 15l-5-5 1.41-1.41L8 12.17l7.59-7.59L17 6l-9 9z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .error-message {
    color: #ff6b6b;
}

[data-theme="dark"] .form-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border-color: rgba(76, 175, 80, 0.3);
}

[data-theme="dark"] .form-status.error {
    background: rgba(211, 47, 47, 0.2);
    color: #e57373;
    border-color: rgba(211, 47, 47, 0.3);
}

[data-theme="dark"] .form-status.info {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border-color: rgba(33, 150, 243, 0.3);
}

[data-theme="dark"] .form-group input.invalid,
[data-theme="dark"] .form-group textarea.invalid,
[data-theme="dark"] .form-group select.invalid {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

[data-theme="dark"] .form-group input.valid,
[data-theme="dark"] .form-group textarea.valid,
[data-theme="dark"] .form-group select.valid {
    border-color: #81c784;
    background-color: rgba(129, 199, 132, 0.1);
}

/* Submit Button Disabled State */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

button[type="submit"]:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(168, 141, 128, 0.2) !important;
}

/* Loading State for Submit Button */
button[type="submit"].loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

button[type="submit"].loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
