/* ============================================
   Jointly Smart — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geometric-shapes {
    z-index: 0;
}

.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}

.circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(212, 160, 23, 0.08);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    bottom: 20%;
    left: 3%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(212, 160, 23, 0.06);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.triangle-1 {
    top: 40%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(212, 160, 23, 0.05);
    transform: rotate(15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.square-1 {
    top: 60%;
    right: 10%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(212, 160, 23, 0.07);
    transform: rotate(45deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

.ring-1 {
    top: 25%;
    left: 15%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(212, 160, 23, 0.04);
    border-radius: 50%;
    animation: float-slow 16s ease-in-out infinite;
}

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(10, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #f5d682 !important;
}

/* Mobile Menu */
#mobileMenu {
    max-height: 0;
}

#mobileMenu.open {
    max-height: 500px;
}

.menu-line {
    display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Animations
   ============================================ */
.reveal-hero {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite;
    animation-delay: 1s;
}

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

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

/* ============================================
   Card Hover Effects
   ============================================ */
.card-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
}

.card-hover:hover .bg-navy-900\/50 {
    border-color: rgba(212, 160, 23, 0.2);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:not(.visible) {
    transform: translateY(20px);
}

.back-to-top:hover {
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
}

/* ============================================
   Button Focus States
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f5d682;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .circle-1,
    .circle-2,
    .triangle-1,
    .square-1,
    .ring-1 {
        display: none;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

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

::-webkit-scrollbar-track {
    background: #0a1a2e;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 160, 23, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 160, 23, 0.5);
}
