/* ===== Custom Styles for Carpintería Metálica Almarjal ===== */

/* Geometric shapes */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

.shape-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(13, 148, 136, 0.05));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    bottom: 15%;
    left: 0%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(20, 184, 166, 0.03));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    top: 40%;
    right: 15%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(45, 212, 191, 0.2);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-4 {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: rgba(20, 184, 166, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-5 {
    bottom: 30%;
    right: 30%;
    width: 60px;
    height: 60px;
    background: rgba(45, 212, 191, 0.06);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation: float 7s ease-in-out infinite reverse;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Service cards */
.service-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

nav.scrolled .nav-link {
    color: #475569 !important;
}

nav.scrolled .nav-link:hover {
    color: #0d9488 !important;
}

nav.scrolled .font-display.font-bold {
    color: #0f172a !important;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to top */
#back-to-top.visible {
    opacity: 1;
    translate: 0 0;
    pointer-events: all;
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Image hover zoom for project cards */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar background before scroll */
nav {
    background: transparent;
}
