/* Common styles for Thinkrithm website */

/* Global box-sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Common body background */
body {
    margin: 0;
    background: linear-gradient(135deg, #0c0e0f 0%, #1a1d1e 50%, #0c0e0f 100%);
    color: #fff;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Topbar styles */
.topbar {
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(12, 14, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(144, 202, 249, 0.2);
    box-sizing: border-box;
}

/* Logo section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: 50px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(144, 202, 249, 0.3);
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(144, 202, 249, 0.5);
}

.logo:active {
    transform: scale(0.95);
}

/* Brand name gradient */
.brand-name {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ffd54f, #90caf9, #4caf50, #f06292, #ba68c8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 213, 79, 0.5);
}

@keyframes glow {

    0%,
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 10px rgba(255, 213, 79, 0.3));
    }

    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 20px rgba(144, 202, 249, 0.5));
    }
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
    padding-right: 0;
}

.nav-link {
    color: #90caf9;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd54f;
    background: rgba(255, 213, 79, 0.1);
    transform: translateY(-2px);
}

/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(144, 202, 249, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 213, 79, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(76, 175, 80, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(1deg);
    }

    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .topbar {
        padding: 0 1rem;
        height: 60px;
    }

    .logo {
        height: 40px;
        width: 40px;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .nav-links {
        display: none;
    }
}