/* SP-Traumschmiede Premium Enhancements V2.0 - €25,000 Quality Level */
/* Complete responsive design and section harmonization */

/* ============================================
   ENHANCED SERVICES SECTION - Premium Quality
   ============================================ */
.services-premium {
    padding: 10rem 4rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.services-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(204, 167, 56, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(204, 167, 56, 0.05) 0%, transparent 50%);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    padding: 4rem 3rem;
    border: 1px solid rgba(204, 167, 56, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: rgba(255, 255, 255, 0.03);
    background-size: 400% 400%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.6s ease;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 2.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border: 2px solid rgba(204, 167, 56, 0.2);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon::after {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   NEW ABOUT SECTION - Ultra Premium
   ============================================ */
.about-premium {
    padding: 10rem 4rem;
    background: #000;
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-pretitle {
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #CCA738;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.about-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-family: 'Didot', serif;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.about-title .gold-accent {
    color: #CCA738;
    display: block;
    margin-top: 0.5rem;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

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

.about-feature {
    padding: 2rem;
    background: rgba(42, 42, 42, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 167, 56, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    transition: all 0.4s ease;
}

.about-feature:hover {
    background: rgba(204, 167, 56, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(204, 167, 56, 0.2);
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: #CCA738;
    font-family: 'Didot', serif;
    margin-bottom: 0.5rem;
}

.feature-label {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.about-visual {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.8s ease;
}

.about-image-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image {
    position: absolute;
    width: 90%;
    height: 90%;
    object-fit: cover;
    border: 1px solid rgba(204, 167, 56, 0.3);
}

.about-image-1 {
    z-index: 3;
    transform: translateZ(50px);
}

.about-image-2 {
    z-index: 2;
    transform: translateZ(0px) translateX(30px) translateY(30px);
    opacity: 0.7;
}

.about-image-3 {
    z-index: 1;
    transform: translateZ(-50px) translateX(60px) translateY(60px);
    opacity: 0.5;
}

/* ============================================
   NEW GALLERY SECTION - Interactive Premium
   ============================================ */
.gallery-premium {
    padding: 10rem 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 4rem;
}

.gallery-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-family: 'Didot', serif;
    font-weight: 300;
    color: #fff;
    margin-bottom: 1rem;
}

.gallery-subtitle {
    font-size: 1.125rem;
    color: #CCA738;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid rgba(204, 167, 56, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.filter-btn:hover,
.filter-btn.active {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.gallery-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.2) rotate(2deg);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-category {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #CCA738;
    margin-bottom: 0.5rem;
}

.gallery-name {
    font-size: 1.5rem;
    font-family: 'Didot', serif;
    color: #fff;
    margin-bottom: 0.5rem;
}

.gallery-view {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #CCA738;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: gap 0.3s ease;
}

.gallery-view:hover {
    gap: 1rem;
}

/* ============================================
   ENHANCED RESPONSIVE DESIGN - All Devices
   ============================================ */

/* Large Laptops (1440px - 1920px) */
@media (min-width: 1440px) and (max-width: 1920px) {
    .hero-content {
        max-width: 700px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1600px;
    }
    
    .about-container {
        max-width: 1600px;
        gap: 10rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Standard Laptops (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    html {
        font-size: 15px;
    }
    
    .nav-premium {
        padding: 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 5vw, 2.5rem);
    }
    
    .services-premium,
    .about-premium,
    .gallery-premium {
        padding: 6rem 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-container {
        gap: 4rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 3rem;
    }
    
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Tablets - Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 14px;
    }
    
    /* Navigation becomes hamburger */
    .nav-premium {
        padding: 1rem 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 30px;
        cursor: pointer;
        z-index: 1000;
    }
    
    .nav-hamburger span {
        height: 2px;
        background: #CCA738;
        transition: all 0.3s ease;
    }
    
    .nav-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }
    
    .nav-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }
    
    /* Hero adjustments */
    .hero-split {
        flex-direction: column;
    }
    
    .hero-left {
        clip-path: none;
        width: 100%;
        min-height: 70vh;
    }
    
    .hero-right {
        position: relative;
        width: 100%;
        height: 30vh;
    }
    
    .hero-content {
        padding: 0 2rem;
        text-align: center;
    }
    
    /* Services */
    .services-premium {
        padding: 4rem 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 3rem 2rem;
    }
    
    /* About */
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual {
        height: 400px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Portfolio */
    .portfolio-item {
        min-width: 300px;
        height: 400px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    /* Testimonials */
    .testimonials-container {
        flex-direction: column;
        height: auto;
    }
    
    .testimonial-card-3d {
        width: 100%;
        position: relative;
        transform: none !important;
        opacity: 1 !important;
        margin-bottom: 2rem;
    }
    
    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Smartphones (<= 768px) */
@media (max-width: 768px) {
    /* Remove extra top spacing for gallery on small screens */
    .gallery-premium {
        padding-top: 0;
    }
}

/* Mobile - Large (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 5vw, 2.5rem);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-premium,
    .about-premium,
    .portfolio-showcase,
    .gallery-premium,
    .testimonials-3d,
    .contact-premium {
        padding: 3rem 1.5rem;
    }
    
    .service-card {
        padding: 2.5rem 1.5rem;
    }
    
    .portfolio-item {
        min-width: 280px;
        height: 350px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Mobile - Small (320px - 479px) */
@media (max-width: 479px) {
    html {
        font-size: 13px;
    }
    
    /* Ultra compact navigation */
    .nav-premium {
        padding: 0.75rem 1rem;
    }
    
    .logo-animated svg {
        width: 140px;
        height: 50px;
    }
    
    /* Hero mobile optimization */
    .hero-split {
        height: 100vh;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 5vw, 2.5rem);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-luxury,
    .btn-outline {
        width: 100%;
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    /* Sections padding */
    .services-premium,
    .about-premium,
    .portfolio-showcase,
    .gallery-premium,
    .testimonials-3d,
    .contact-premium,
    .footer-premium {
        padding: 2.5rem 1rem;
    }
    
    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    /* About mobile */
    .about-title {
        font-size: 2rem;
    }
    
    .about-features {
        gap: 1rem;
    }
    
    .about-feature {
        padding: 1.5rem;
    }
    
    .feature-number {
        font-size: 2rem;
    }
    
    .about-visual {
        height: 300px;
    }
    
    /* Portfolio mobile */
    .portfolio-slider {
        padding: 0 1rem;
    }
    
    .portfolio-item {
        min-width: 250px;
        height: 300px;
    }
    
    /* Gallery mobile */
    .gallery-filters {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .gallery-grid {
        padding: 0 1rem;
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    /* Testimonials mobile */
    .testimonial-card-3d {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-quote {
        font-size: 1.125rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .form-submit {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    /* Footer mobile */
    .footer-container {
        gap: 2rem;
    }
    
    .footer-logo {
        font-size: 1.75rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Disable heavy animations on mobile */
    #webgl-canvas {
        display: none;
    }
    
    .floating-elements {
        display: none;
    }
    
    #cursor,
    #cursor-follower {
        display: none;
    }
}

/* ============================================
   PREMIUM MICRO-INTERACTIONS & ANIMATIONS
   ============================================ */

/* Smooth reveal animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Premium hover states */
.premium-hover {
    position: relative;
    overflow: hidden;
}

.premium-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(204, 167, 56, 0.3) 0%, transparent 70%);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
}

.premium-hover:hover::after {
    width: 500px;
    height: 500px;
}

/* Magnetic buttons */
.magnetic-btn {
    position: relative;
    transition: all 0.3s ease;
}

/* Text shimmer effect */
.shimmer-text {
    background: linear-gradient(
        90deg,
        #CCA738 0%,
        #E5C158 25%,
        #CCA738 50%,
        #E5C158 75%,
        #CCA738 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

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

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .portfolio-item:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .btn-luxury,
    .btn-outline,
    .filter-btn {
        -webkit-tap-highlight-color: rgba(204, 167, 56, 0.2);
    }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card,
    .portfolio-item,
    .gallery-item {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}
