/* ========================================
   Olde Stuff — 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
   ======================================== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
}

.geo-circle-1 {
    top: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(52, 212, 176, 0.08);
    border-radius: 50%;
}

.geo-circle-2 {
    bottom: 10%;
    right: -3%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(52, 212, 176, 0.06);
    border-radius: 50%;
}

.geo-rect-1 {
    top: 60%;
    left: 5%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(52, 212, 176, 0.07);
    transform: rotate(45deg);
}

.geo-triangle {
    top: 30%;
    right: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(52, 212, 176, 0.04);
}

.geo-ring {
    top: 75%;
    right: 15%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(52, 212, 176, 0.06);
    border-radius: 50%;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

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

@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

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

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.geo-circle-1 { animation: float 8s ease-in-out infinite; }
.geo-circle-2 { animation: float-reverse 10s ease-in-out infinite; }
.geo-rect-1 { animation: float 12s ease-in-out infinite; }
.geo-triangle { animation: float-reverse 9s ease-in-out infinite; }
.geo-ring { animation: float 7s ease-in-out infinite; }

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-reverse { animation: float-reverse 5s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }
.animate-bounce-slow { animation: bounce-slow 3s ease-in-out infinite; }

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================
   Navigation
   ======================================== */
.nav-bar {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.nav-bar.scrolled {
    background-color: rgba(5, 13, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    background: rgba(5, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-menu-link {
    display: block;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ========================================
   Back to Top
   ======================================== */
.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);
    pointer-events: all;
    box-shadow: 0 4px 20px rgba(52, 212, 176, 0.3);
}

.back-to-top:hover {
    box-shadow: 0 4px 30px rgba(52, 212, 176, 0.5);
    transform: translateY(-2px);
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background: rgba(52, 212, 176, 0.3);
    color: #fff;
}

/* ========================================
   Focus Styles
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #34d4b0;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 640px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-triangle {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }
}
