/* Custom styles for Sew Impressive */

/* Ensure smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070f1a;
}
::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.5);
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

/* Geometric shapes */
.triangle-deco {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.hexagon-deco {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.diamond-deco {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.card-float {
    animation: float 6s ease-in-out infinite;
}

.card-float-delayed {
    animation: float 6s ease-in-out 2s infinite;
}

.card-float-slow {
    animation: float-slow 8s ease-in-out 1s infinite;
}

.pulse-soft {
    animation: pulse-soft 4s ease-in-out infinite;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Hero background pattern */
.hero-bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(52, 211, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(94, 234, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(13, 27, 42, 0.9) 0%, transparent 100%);
}

/* Nav link underline */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #34d399;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.35);
}

/* Stat cards */
.stat-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(94, 234, 212, 0.15);
}

/* Service card hover */
.service-card:hover .service-icon {
    transform: rotate(12deg) scale(1.1);
}
.service-icon {
    transition: transform 0.3s ease;
}

/* Mobile menu overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

/* Geometric accent bar */
.geo-bar {
    height: 4px;
    background: linear-gradient(90deg, #0d1b2a 0%, #34d399 50%, #0d1b2a 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: none !important;
    }
    
    .floating-stats-mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Print styles */
@media print {
    .geometric-shape,
    .card-float,
    .card-float-delayed,
    .card-float-slow,
    #backToTop {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
