/* Clean CSS for GirschWorks Digital */

/* Hero background */
.hero-bg {
    background-image: url('/images/logos/gwd-logo-large.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.6);
    z-index: 1;
}

/* About Us Hero background */
.about-hero-bg {
    background-image: url('/images/logos/gwd-logo-large.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.about-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.6);
    z-index: 1;
}


/* Portfolio section with logo background */
.portfolio-bg {
    background-image: url('/images/logos/gwd-logo-large.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.portfolio-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.7);
    z-index: 1;
}

/* Header - solid white background */
header {
    background-color: white !important;
}

/* Button styles */
.button-primary {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid #3b82f6;
    min-width: 200px;
    text-align: center;
    text-decoration: none;
}

.button-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
}

.button-secondary {
    display: inline-block;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #60a5fa;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid #60a5fa;
    min-width: 200px;
    text-align: center;
    text-decoration: none;
}

.button-secondary:hover {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    border-color: #93c5fd;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: #f9fafb;
    color: #1f2937;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #60a5fa;
    outline: none;
}

/* Contact item styles */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Service icon styles */
.service-icon {
    background-color: #2563eb;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* Carousel styles */
.carousel-container {
    perspective: 1000px;
}

.carousel-item {
    transition: all 0.5s ease-in-out;
}

.carousel-item.center {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
}

.carousel-item.left {
    transform: translateX(-120px) rotateY(45deg) scale(0.8);
    opacity: 0.6;
    z-index: 2;
}

.carousel-item.right {
    transform: translateX(120px) rotateY(-45deg) scale(0.8);
    opacity: 0.6;
    z-index: 2;
}

.carousel-item.hidden {
    opacity: 0;
    transform: scale(0.5);
    z-index: 1;
}

/* Arrow animations */
.carousel-arrow {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel:hover .carousel-arrow {
    opacity: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item.left {
        transform: translateX(-80px) rotateY(30deg) scale(0.7);
    }
    
    .carousel-item.right {
        transform: translateX(80px) rotateY(-30deg) scale(0.7);
    }
    
    .hero-bg,
    .portfolio-bg {
        background-attachment: scroll;
    }
}

/* Focus styles for accessibility */
.button-primary:focus,
.button-secondary:focus,
.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #60a5fa, 0 0 0 4px rgba(96, 165, 250, 0.2);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-300,
    .text-gray-400,
    .text-gray-600 {
        color: #000000;
    }
    
    .bg-gray-100,
    .bg-gray-800,
    .bg-gray-900 {
        background-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .carousel-item,
    .button-primary,
    .button-secondary {
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-bg,
    .portfolio-bg {
        background-attachment: scroll;
    }
}