/* CraftEdge - Custom CSS Styles */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Hero Section Background */
.hero-section {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(44, 62, 80, 0.8) 100%),
                url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?w=1920&q=80') center/cover no-repeat;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

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

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

.hero-content h1,
.hero-content p,
.hero-content .cta-button,
.hero-content .cta-button-secondary {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    animation-delay: 0.2s;
}

.hero-content .cta-button {
    animation-delay: 0.4s;
}

.hero-content .cta-button-secondary {
    animation-delay: 0.5s;
}

/* Navigation Styles */
nav {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B35;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Section Title Animations */
.section-title {
    position: relative;
    display: inline-block;
}

/* Service Cards Hover Effects */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    transition: all 0.4s ease;
}

.gallery-placeholder {
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.05);
}

/* Contact Form Styles */
#contactForm input,
#contactForm select,
#contactForm textarea {
    transition: all 0.3s ease;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Button Hover Effects */
.cta-button,
.cta-button-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Stat Cards Animation */
.stat-card {
    transition: all 0.3s ease;
}

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

/* Contact Icons */
.contact-icon {
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1);
}

/* Social Icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Map Container */
.map-container {
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #FF6B35;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    background: #1E3A5F;
    transform: translateY(-5px);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E3A5F;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Success Message */
.success-message {
    background: #10B981;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.success-message.show {
    display: block;
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    nav .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav .space-x-8 {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    nav,
    #scrollToTop,
    footer {
        display: none;
    }
    
    .hero-section {
        height: auto;
        padding: 2rem;
    }
}

/* Accessibility Improvements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}