/* ===== Custom Styles for Flying Sea by RedAwning ===== */

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

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Navigation ===== */
.nav-fixed {
    background: rgba(242, 252, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 62, 80, 0.06);
    transition: all 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(26, 37, 47, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #3aa882);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.mobile-nav-link {
    position: relative;
}

/* ===== Buttons ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default state for reveal elements — visible by default for accessibility */
.reveal[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal[data-reveal="revealed"] {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2c3e50, #3aa882);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1a252f, #2d8a6a);
}

/* ===== Selection ===== */
::selection {
    background: rgba(34, 197, 94, 0.2);
    color: #1a252f;
}

/* ===== Image hover effects ===== */
img {
    transition: transform 0.5s ease;
}

/* ===== Form focus styles ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .nav-fixed {
        background: rgba(242, 252, 247, 0.95);
    }
    
    .nav-fixed.scrolled {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* ===== Gradient text utility ===== */
.gradient-text {
    background: linear-gradient(135deg, #22c55e, #3aa882);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Subtle pattern overlay ===== */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(44, 62, 80, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
