/* Custom styles for Irish Resorts */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #393939;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff6b4a;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #ffffff;
}

/* Mobile menu animations */
.menu-line {
    display: block;
}

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

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

/* Mobile link hover effect */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff6b4a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.mobile-link:hover::after {
    width: 100%;
}

/* Room cards */
.room-card {
    position: relative;
    z-index: 1;
}
.room-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 107, 74, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.room-card:hover::before {
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
    z-index: 1;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 6rem;
    line-height: 1;
    color: rgba(255, 107, 74, 0.08);
    pointer-events: none;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Geometric decorative elements */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for CTA */
@keyframes pulse-coral {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(255, 107, 74, 0); }
}
.pulse-cta {
    animation: pulse-coral 2s infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in, .fade-in.visible { opacity: 1; transform: none; }
    .stagger-children.visible > * { opacity: 1; transform: none; transition: none; }
    .pulse-cta { animation: none; }
    .room-card, .testimonial-card { transition: none; }
    .room-card:hover, .testimonial-card:hover { transform: none; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-family: 'Playfair Display', Georgia, serif;
    }
}
