/* Custom styles for eTech Solutions */

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

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(5, 150, 105, 0.1);
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

/* Menu button animation */
#menu-btn.active #menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

#menu-btn.active #menu-icon span:nth-child(3) {
    transform: translateX(8px);
    width: 20px;
}

/* Mobile link hover */
.mobile-link {
    opacity: 1;
}

/* Subtle line accents */
.subtle-line {
    position: relative;
}

.subtle-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, #059669, transparent);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* Selection color */
::selection {
    background: #d1fae5;
    color: #064e3b;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image lazy load placeholder */
img[loading="lazy"] {
    opacity: 1;
}

/* Form styles */
input,
textarea {
    background: #fefdf8;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    color: #064e3b;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* Success message */
.form-success {
    display: none;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    padding: 16px 20px;
    color: #064e3b;
    text-align: center;
    margin-top: 16px;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
