/* Light theme (default) */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F9FAFB; /* gray-50 */
    color: #111827; /* gray-900 */
    --scrollbar-bg: #E5E7EB; /* gray-200 */
    --scrollbar-thumb: #9CA3AF; /* gray-400 */
}

/* Dark theme */
.dark body {
    background-color: #04091E;
    color: #ADB3CB;
    --scrollbar-bg: #111936;
    --scrollbar-thumb: #4640FF;
}

/* Custom scrollbar for the dark theme */
body::-webkit-scrollbar {
    width: 12px;
}
body::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}
body::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 20px;
    border: 3px solid var(--scrollbar-bg);
}

.gradient-text {
    background: linear-gradient(90deg, #4640FF, #E61577);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.gradient-button-niotech {
    background-image: linear-gradient(to right, #4640FF 0%, #E61577 100%);
    transition: all 0.4s ease;
    background-size: 200% auto;
}

.gradient-button-niotech:hover {
    background-position: right center;
}

.niotech-card {
    background-color: #FFFFFF;
    position: relative;
    border: 1px solid #E5E7EB; /* gray-200 */
    transition: all 0.3s ease;
}

.dark .niotech-card {
    background-color: #111936;
    border: 1px solid #222B4A;
}

.niotech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #4640FF;
}

.dark .niotech-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.niotech-card-border-glow {
    position: relative;
    border: 1px solid #E5E7EB; /* gray-200 */
}

.dark .niotech-card-border-glow {
    border: 1px solid #222B4A;
}

.niotech-card-border-glow::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(120deg, #4640FF, #E61577, #4640FF);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, background-position 1s ease;
    animation: gradient-animation 8s ease infinite;
}

.niotech-card-border-glow:hover::before {
    opacity: 1;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background Aurora Blobs */
.aurora-blob {
    position: absolute;
    filter: blur(150px);
    border-radius: 50%;
    z-index: 0;
    animation: move-blob 30s infinite alternate;
    display: none; /* Hidden by default */
}

.dark .aurora-blob {
    display: block; /* Shown only in dark mode */
    opacity: 0.15;
}

.aurora-blob-1 {
    width: 600px;
    height: 600px;
    background: #4640FF;
    top: -20%;
    left: -10%;
}

.aurora-blob-2 {
    width: 500px;
    height: 500px;
    background: #E61577;
    top: 20%;
    right: -15%;
    animation-delay: -15s;
}

@keyframes move-blob {
    from {
        transform: rotate(0deg) scale(1) translateX(-20px);
    }
    to {
        transform: rotate(360deg) scale(1.1) translateX(20px);
    }
}

.niotech-input {
    background-color: #F9FAFB; /* gray-50 */
    border: 1px solid #D1D5DB; /* gray-300 */
    color: #111827;
}

.dark .niotech-input {
    background-color: #0B1229;
    border: 1px solid #222B4A;
    color: #ADB3CB;
}

.niotech-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #4640FF;
}

/* Back to Top Button - DEBUG STYLES */
#backToTop {
    position: fixed !important;
    bottom: 32px !important;
    right: 32px !important;
    padding: 12px !important;
    background: #8B5CF6 !important; /* Mor renk */
    color: white !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5) !important;
    border: 2px solid white !important;
    cursor: pointer !important;
    z-index: 10000 !important; /* Çok yüksek z-index */
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

#backToTop:hover {
    background: #7C3AED !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6) !important;
}

/* TEST: Butonu her zaman göster */
#backToTop.debug-visible {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

