/* ===== Custom Styles for Martin Ceramic Coating ===== */

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

/* ===== Geometric Animations ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid #34d399;
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: #6ee7b7;
    border-radius: 50%;
    bottom: 25%;
    left: 5%;
    animation-delay: -5s;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 3px solid #fef3c7;
    top: 30%;
    left: 8%;
    transform: rotate(45deg);
    animation-delay: -3s;
}

.geo-diamond {
    width: 80px;
    height: 80px;
    background: #a7f3d0;
    top: 60%;
    right: 12%;
    transform: rotate(30deg);
    animation-delay: -7s;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #34d399;
    top: 15%;
    left: 25%;
    animation-delay: -10s;
    opacity: 0.05;
}

.geo-ring {
    width: 300px;
    height: 300px;
    border: 2px solid #fefce8;
    border-radius: 50%;
    bottom: 10%;
    right: 20%;
    animation-delay: -2s;
    opacity: 0.05;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(-25px) rotate(2deg); }
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #34d399, #fef3c7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== Process Steps ===== */
.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #059669, #34d399);
    display: none;
}

@media (min-width: 1024px) {
    .process-step:not(:last-child)::after {
        display: block;
    }
}

/* ===== Gallery ===== */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

/* ===== Navbar Scroll Effect ===== */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-heading {
    color: #064e3b;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    position: relative;
}

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

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

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Button Focus States ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* ===== Selection Color ===== */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}
