/* Custom styles for Area website - Modern Minimal Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Root variables for consistent colors */
:root {
    --primary-text: #111827;
    --secondary-text: #6B7280;
    --accent-color: #1E3A8A;
    --background: #FFFFFF;
    --hover-color: #000000;
    --navy-blue: #1E3A8A;
    --navy-blue-dark: #1E40AF;
    --hover-green: #1E3A8A;
    --accent-button: #1E3A8A;
    --background-block: #E5E7EB;
}

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

/* Body styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--primary-text);
    letter-spacing: 0.025em;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom navy blue colors for Tailwind */
.bg-navy-blue {
    background-color: #1E3A8A;
}

.bg-navy-blue-dark {
    background-color: #1E40AF;
}

.text-navy-blue {
    color: #1E3A8A;
}

.hover\:text-navy-blue:hover {
    color: #1E3A8A;
}

/* Custom blue colors for Discover More button */
.bg-blue-100 {
    background-color: #DBEAFE;
}

.hover\:bg-blue-200:hover {
    background-color: #BFDBFE;
}

/* Navigation styles */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: #FFFFFF;
    backdrop-filter: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive navbar improvements */
@media (max-width: 767px) {
    #navbar {
        padding: 0.75rem 0;
    }

    #navbar .flex {
        padding: 0 1rem;
    }

    #navbar .text-xl {
        font-size: 1.125rem;
    }

    #navbar img {
        width: 4.5rem;
        height: 2.5rem;
    }

    .mobile-menu-button {
        padding: 0.5rem;
    }
}

/* Mobile menu styles */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 50;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Mobile menu content */
.mobile-menu-content {
    padding: 1rem;
}

.mobile-menu-content a {
    display: block;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLink 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-menu.active .mobile-menu-content a {
    animation: slideInLink 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-menu.active .mobile-menu-content a:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-content a:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-menu.active .mobile-menu-content a:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-content a:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-menu.active .mobile-menu-content a:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-menu.active .mobile-menu-content a:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-menu.active .mobile-menu-section {
    animation-delay: 0.15s;
}

@keyframes slideInLink {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-content a:hover {
    background: #f3f4f6;
    transform: translateX(4px) !important;
    color: #1E3A8A;
}

/* Mobile menu submenu styles */
.mobile-menu-section {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLink 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-menu-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 0.5rem;
    margin-bottom: 0;
}

.mobile-menu-main-link {
    flex: 1;
    display: block;
    padding: 0.875rem 1rem;
    color: #374151;
    font-weight: 500;
}

.mobile-menu-main-link:hover {
    color: #1E3A8A;
}

.mobile-menu-section-header:hover .mobile-menu-arrow {
    color: #1E3A8A;
}

.mobile-menu-arrow {
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.mobile-menu-section.expanded .mobile-menu-arrow {
    transform: rotate(180deg);
}

.mobile-menu-submenu {
    display: none;
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mobile-menu-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-category:first-child {
    margin-top: 0;
}

.mobile-menu-sublink {
    display: block;
    padding: 0.75rem 1rem;
    color: #4b5563;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.mobile-menu-sublink:hover {
    background: #f9fafb;
    color: #1E3A8A;
    padding-left: 1.25rem;
}

.mobile-menu-view-all {
    display: block;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    color: #1E3A8A;
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.mobile-menu-view-all:hover {
    background: #EFF6FF;
    color: #1E40AF;
}

/* Hero section styling */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Tablet mockup styling */
.tablet-mockup {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Background blocks styling */
.bg-block-left {
    background-color: var(--background-block);
    opacity: 0.6;
}

.bg-block-right {
    background-color: var(--background-block);
    opacity: 0.6;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Section reveal animation - smoother and more gradual */
@keyframes sectionReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    50% {
        opacity: 0.5;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Section reveal class - invisible by default */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

/* Visible state */
.section-reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Prevent animation from re-triggering */
.section-reveal.revealed>* {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Only animate children on first reveal */
.section-reveal:not(.revealed)>* {
    animation: sectionReveal 0.7s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.section-reveal:not(.revealed)>*:nth-child(1) {
    animation-delay: 0.05s;
}

.section-reveal:not(.revealed)>*:nth-child(2) {
    animation-delay: 0.10s;
}

.section-reveal:not(.revealed)>*:nth-child(3) {
    animation-delay: 0.15s;
}

.section-reveal:not(.revealed)>*:nth-child(4) {
    animation-delay: 0.20s;
}

.section-reveal:not(.revealed)>*:nth-child(5) {
    animation-delay: 0.25s;
}

.section-reveal:not(.revealed)>*:nth-child(6) {
    animation-delay: 0.30s;
}

.section-reveal:not(.revealed)>*:nth-child(7) {
    animation-delay: 0.35s;
}

.section-reveal:not(.revealed)>*:nth-child(8) {
    animation-delay: 0.40s;
}

/* Section transition effects */
section {
    transition: all 0.3s ease-out;
}

section:hover {
    transform: translateY(-2px);
}

/* Enhanced navigation link transitions */
.nav-link {
    position: relative;
    transition: all 0.3s ease-out;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1E3A8A, #1E40AF);
    transition: width 0.3s ease-out;
}

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

/* Active navigation link style */
.nav-link.active {
    color: #1E3A8A !important;
    font-weight: 600;
}

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

/* Staggered animation delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* Copy button styles */
.copy-btn {
    transition: all 0.2s ease-out;
    border-radius: 4px;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Copy notification styles */
#copy-notification {
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.learn-more-btn {
    background-color: var(--accent-button);
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background-color: var(--hover-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(70, 92, 51, 0.3);
}

/* Navigation link hover effects - merged with existing .nav-link definition above */

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .tablet-mockup {
        width: 320px;
        height: 200px;
    }

    .bg-block-left,
    .bg-block-right {
        width: 200px;
        height: 120px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .tablet-mockup {
        width: 280px;
        height: 180px;
    }

    .bg-block-left,
    .bg-block-right {
        width: 160px;
        height: 100px;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #1E3A8A;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E40AF;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #1E3A8A;
    outline-offset: 2px;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1E3A8A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hide scrollbar for horizontal scroll */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

/* Scroll button styles - Mobile only */
#scroll-left,
#scroll-right {
    cursor: pointer;
    pointer-events: auto;
    z-index: 30;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0.3;
}

#scroll-left:hover,
#scroll-right:hover,
#scroll-left:active,
#scroll-right:active {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

#scroll-container {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

/* Ensure scroll container starts at leftmost position */
#scroll-container {
    scroll-padding-left: 0;
    scroll-padding-right: 0;
}

/* Hide scroll buttons on desktop */
@media (min-width: 768px) {

    #scroll-left,
    #scroll-right {
        display: none !important;
    }
}

/* Journey Page Specific Styles */
.journey-milestone {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.journey-milestone.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Make first milestone visible by default */
.journey-milestone:first-child {
    opacity: 1;
    transform: translateY(0);
}

.road-path {
    background: linear-gradient(180deg, #D1D5DB 0%, #9CA3AF 50%, #D1D5DB 100%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.milestone-card {
    transition: all 0.3s ease;
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Road animation */
@keyframes roadFlow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

.road-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: roadFlow 3s linear infinite;
}

/* Milestone number animation */
.milestone-number {
    transition: all 0.3s ease;
}

.milestone-card:hover .milestone-number {
    transform: scale(1.1);
}

/* Stats counter animation */
.stat-number {
    transition: all 0.6s ease;
}

/* Responsive adjustments for journey page */
@media (max-width: 768px) {
    .journey-milestone {
        transform: translateX(-20px);
    }

    .journey-milestone.visible {
        transform: translateX(0);
    }
}

/* Footer Responsive Styles */
footer {
    font-size: 0.875rem;
}

footer a {
    transition: all 0.2s ease;
    display: inline-block;
}

footer a:hover {
    transform: translateY(-1px);
}

/* Mobile Footer Adjustments */
@media (max-width: 640px) {
    footer {
        padding: 1.5rem 0;
    }

    footer .flex {
        gap: 0;
    }

    /* Stack elements vertically on small screens */
    footer>div>div {
        width: 100%;
        text-align: center;
    }

    /* Reduce margins between footer sections */
    footer .mb-6 {
        margin-bottom: 1.5rem !important;
    }

    /* Adjust link spacing for very small screens */
    footer .gap-4 {
        gap: 0.75rem !important;
    }
}

/* Tablet Footer Adjustments */
@media (min-width: 641px) and (max-width: 768px) {
    footer {
        padding: 2rem 0;
    }

    footer .gap-4 {
        gap: 1.5rem !important;
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}