/* ===== Custom Styles for Cloud 334 ===== */

/* --- Geometric Animations --- */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #5eead4 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, #2dd4bf 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, #99f6e0 0%, transparent 70%);
    top: 40%;
    right: 10%;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: #5eead4;
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: #2dd4bf;
    bottom: 25%;
    right: 15%;
    transform: rotate(20deg);
    animation: spin-slow 18s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #99f6e0;
    top: 60%;
    left: 15%;
    opacity: 0.06;
    animation: float-slow 16s ease-in-out infinite;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #5eead4 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    top: 30%;
    right: 5%;
    opacity: 0.15;
    animation: float-slow 22s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navbar Scroll State --- */
.navbar-scrolled {
    background: rgba(6, 15, 24, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
    background: #14b8a6;
    color: white;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1b2a;
}
::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* --- Button hover glow --- */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.4);
}

/* --- Image hover transitions --- */
img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Mobile menu animation --- */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
