/* Custom Cursor */
.cursor {
    width: 35px;
    height: 35px;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 191, 166, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: cursorPulse 2.5s infinite ease-in-out;
    transition: all 0.2s ease-in-out;
}

.cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 191, 166, 0.7);
    transition: all 0.2s ease-in-out;
}

.cursor-dot {
    width: 45px;
    height: 45px;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(30, 136, 229, 0.15) 0%, transparent 65%);
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.cursor.hover::before {
    transform: translate(-50%, -50%) scale(1.6);
    border-color: var(--secondary);
    opacity: 0.8;
    animation-play-state: paused;
    box-shadow: 0 0 20px var(--secondary);
}

.cursor.hover::after {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--secondary);
}

.cursor.click::before {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 1;
}

.cursor.click::after {
    transform: translate(-50%, -50%) scale(0.5);
}

.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.trail-1 {
    background: radial-gradient(circle, rgba(0, 191, 166, 0.25) 0%, transparent 60%);
    filter: blur(3px);
}

.trail-2 {
    background: radial-gradient(circle, rgba(30, 136, 229, 0.2) 0%, transparent 65%);
    filter: blur(4px);
}

.trail-3 {
    background: radial-gradient(circle, rgba(0, 191, 166, 0.15) 0%, transparent 70%);
    filter: blur(5px);
}

.cursor-trail-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9996;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: particleExplode 1.2s ease-out forwards;
}

.cursor-wave {
    position: fixed;
    pointer-events: none;
    z-index: 9995;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    opacity: 0.8;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: waveExpandSoft 0.8s ease-out forwards;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(0px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease-in-out, backdrop-filter 0.4s ease-in-out, padding 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

nav.scrolled {
    padding: 0.8rem 0;
    background: rgba(10, 14, 39, 0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img {
    height: 28px;
    width: auto;
    transition: all 0.3s ease;
}

nav:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);  /* Makes logo white when nav is transparent */
}

nav.scrolled .logo-img {
    filter: none;  /* Original colors when scrolled */
}

/* Hover effect for logo */
.logo:hover .logo-img {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.8rem;
}

.nav-links a {
    color: var(--nav-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease, opacity 0.3s ease;
    position: relative;
    padding: 0.5rem 0.1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--nav-text-hover-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.nav-links a:hover {
    color: var(--nav-text-hover-color);
    opacity: 1;
}

.nav-links a:hover::after {
    width: 20px;
    opacity: 1;
}

/* Buttons */
.btn {
    padding: 1.1rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn span:last-child {
    transition: transform 0.3s ease;
}

.btn:hover span:last-child {
    transform: translateX(3px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--gradient2);
    color: white;

    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1), 0 6px 25px rgba(0, 191, 166, 0.45);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2), 0 10px 35px rgba(0, 191, 166, 0.65);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 191, 166, 0.3);
}

.btn-secondary::before {
    background: var(--primary);
}

/* Scroll Elements */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient2);
    z-index: 10000;
    transition: width 0.2s ease-out;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 10px;
    background: var(--primary);
    border-radius: 3px;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

/* Background Elements */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(45deg, #0A0E27 0%, #1a1f3a 100%);
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300BFA6" fill-opacity="0.07" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center;
    animation: wave 25s linear infinite;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 25s infinite ease-in-out;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0.08;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatShape 25s infinite ease-in-out;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: transform 0.1s linear;
}
    
/* Interactive Effects */
.magnetic {
    position: relative;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 191, 166, 0.3) 0%, transparent 70%);
    transition: width 0.7s ease, height 0.7s ease, opacity 0.7s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.glow-on-hover:hover::before {
    width: 350px;
    height: 350px;
    opacity: 1;
}

.tilt {
    transform-style: preserve-3d;
    transform: perspective(1200px);
    transition: transform 0.2s ease-out;
}

.tilt-child {
    transform: translateZ(60px);
}




.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnimation 0.7s ease-out;
    pointer-events: none;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.reveal-stagger > .reveal {
    transition-delay: calc(var(--stagger-index, 0) * 0.15s);
}
/* Hamburger Menu Button */
.hamburger {
    display: none;
    padding: 15px;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 4px;
    position: absolute;
    transition-property: transform, background-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}


nav:not(.scrolled) .hamburger.is-active .hamburger-inner,
nav:not(.scrolled) .hamburger-inner,
nav:not(.scrolled) .hamburger-inner::before,
nav:not(.scrolled) .hamburger-inner::after {
     background-color: var(--light);
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1.5px;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Hamburger Animation to "X" */
.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
}
.hamburger.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}
.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}
/* Custom Cursor */
.cursor {
    width: 35px;
    height: 35px;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* Tilt Instruction Overlay */
.tilt-instruction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light);
}

.tilt-instruction-overlay.is-hidden {
    animation: slideOutUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.tilt-instruction-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    animation: fadeInPerspective 1s ease-out 0.5s both;
}

.tilt-instruction-content .tilt-icon {
    width: 70px;
    height: 70px;
    stroke: var(--primary);
    animation: pulseFlutter 3s infinite ease-in-out;
}

.tilt-instruction-content p {
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 80%;
    opacity: 0.6;
}
