* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #00d4aa;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #00d4aa;
    border-radius: 50%;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 170, 0.1);
    border-color: #00e9bd;
}

.cursor-follower.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: rgba(0, 233, 189, 0.5);
}

a, button, .clickable {
    cursor: none;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4aa;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.section-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Theming helpers */
.font-serif {
    font-family: 'Playfair Display', serif;
}

.text-soft-aqua {
    color: #e6fffa;
}

a,
button {
    transition: color .3s ease, background-color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #00d4aa;
    outline-offset: 2px;
}

/* Element reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: transform .6s ease, opacity .6s ease;
}

.reveal-visible {
    opacity: 1;
    transform: none;
}

/* Animation keyframes */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

/* Floating animation for hero elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
    75% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Floating particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.8) 0%, rgba(0, 212, 170, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes particleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translate(100vw, -100vh) scale(0.5); opacity: 0; }
}

@keyframes particleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translate(-100vw, -120vh) scale(0.8); opacity: 0; }
}

@keyframes particleFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translate(80vw, -90vh) scale(0.6); opacity: 0; }
}

.particle-1 { left: 5%; bottom: 0; animation: particleFloat1 15s infinite; animation-delay: 0s; }
.particle-2 { left: 12%; bottom: 0; animation: particleFloat2 18s infinite; animation-delay: 2s; width: 5px; height: 5px; }
.particle-3 { left: 20%; bottom: 0; animation: particleFloat3 20s infinite; animation-delay: 4s; }
.particle-4 { left: 28%; bottom: 0; animation: particleFloat1 16s infinite; animation-delay: 1s; width: 8px; height: 8px; }
.particle-5 { left: 35%; bottom: 0; animation: particleFloat2 22s infinite; animation-delay: 3s; }
.particle-6 { left: 42%; bottom: 0; animation: particleFloat3 17s infinite; animation-delay: 5s; width: 7px; height: 7px; }
.particle-7 { left: 50%; bottom: 0; animation: particleFloat1 19s infinite; animation-delay: 2.5s; }
.particle-8 { left: 58%; bottom: 0; animation: particleFloat2 21s infinite; animation-delay: 4.5s; width: 5px; height: 5px; }
.particle-9 { left: 65%; bottom: 0; animation: particleFloat3 18s infinite; animation-delay: 1.5s; }
.particle-10 { left: 72%; bottom: 0; animation: particleFloat1 20s infinite; animation-delay: 3.5s; width: 8px; height: 8px; }
.particle-11 { left: 80%; bottom: 0; animation: particleFloat2 16s infinite; animation-delay: 5.5s; }
.particle-12 { left: 88%; bottom: 0; animation: particleFloat3 19s infinite; animation-delay: 0.5s; width: 7px; height: 7px; }
.particle-13 { left: 95%; bottom: 0; animation: particleFloat1 23s infinite; animation-delay: 2.8s; }
.particle-14 { left: 8%; bottom: 0; animation: particleFloat2 17s infinite; animation-delay: 4.2s; width: 5px; height: 5px; }
.particle-15 { left: 16%; bottom: 0; animation: particleFloat3 21s infinite; animation-delay: 1.8s; }
.particle-16 { left: 25%; bottom: 0; animation: particleFloat1 19s infinite; animation-delay: 6s; width: 7px; height: 7px; }
.particle-17 { left: 38%; bottom: 0; animation: particleFloat2 24s infinite; animation-delay: 3.2s; }
.particle-18 { left: 55%; bottom: 0; animation: particleFloat3 16s infinite; animation-delay: 1.2s; width: 5px; height: 5px; }
.particle-19 { left: 68%; bottom: 0; animation: particleFloat1 21s infinite; animation-delay: 4.8s; }
.particle-20 { left: 85%; bottom: 0; animation: particleFloat2 18s infinite; animation-delay: 2.2s; width: 8px; height: 8px; }

/* Smooth hover transitions for buttons and links */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Enhanced focus states for accessibility */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
    background: #00d4aa;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00e9bd;
}

@media (prefers-reduced-motion: reduce) {

    .section-fade,
    .nav-link::after,
    .reveal,
    .animate-fade-in {
        animation: none !important;
        transition: none !important;
    }
}
